Documentation
¶
Overview ¶
Package internal provides CLI command handling for tmhi-cli.
Index ¶
- Constants
- Variables
- func Cmd(version string)
- func Info(ctx context.Context, _ *cli.Command) error
- func Login(ctx context.Context, _ *cli.Command) error
- func Reboot(ctx context.Context, cmd *cli.Command) error
- func Req(ctx context.Context, cmd *cli.Command) error
- func Signal(ctx context.Context, _ *cli.Command) error
- func Status(ctx context.Context, _ *cli.Command) error
Constants ¶
View Source
const ( ARCADYAN string = "ARCADYAN" NOK5G21 string = "NOK5G21" DefaultTimeout time.Duration = 5 * time.Second )
Gateway model constants.
View Source
const ( ConfigDryRun string = "dry-run" ConfigConfig string = "config" ConfigDebug string = "debug" ConfigLogin string = "login." ConfigUsername string = ConfigLogin + "username" ConfigPassword string = ConfigLogin + "password" ConfigGateway string = "gateway." ConfigModel string = ConfigGateway + "model" ConfigIP string = ConfigGateway + "ip" ConfigTimeout string = "timeout" ConfigRetries string = "retries" // ConfigAutoConfirm enables auto-confirm prompts. ConfigAutoConfirm string = "yes" )
Configuration flag names.
Variables ¶
View Source
var ErrUnknownGateway = errors.New("unknown gateway")
ErrUnknownGateway is returned when an unsupported gateway model is specified.
Functions ¶
func Cmd ¶ added in v0.2.0
func Cmd(version string)
Cmd is the main entry point for the CLI application.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.