cmd

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package cmd provides command line interface.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	ExternalForwarder externalforwarder.Interface
}

Cmd provides command line interface.

func (Cmd) Run

func (cmd Cmd) Run(ctx context.Context, osArgs []string, version string) int

Run parses the arguments and executes the corresponding use-case.

type Interface

type Interface interface {
	Run(ctx context.Context, osArgs []string, version string) int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL