Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WebshArgs ¶ added in v1.4.6
type WebshArgs struct {
Username string
Groupname string
ServerName string
CommandArgs []string
ReadOnly bool
WorkSessionID string
OutputFormat string
Env map[string]string
}
func ParseWebshArgs ¶ added in v1.4.6
ParseWebshArgs parses raw CLI args for `alpacon websh` (DisableFlagParsing mode), returning errHelpRequested when -h/--help is seen before the server name. Every word after the server name, a websh flag included, is the remote command.
NOTE: every named flag must be matched before the unknown-flag case, and in helpOutputFormat too.