Modernize invertergui: MQTT write support, HA integration, UI updates
Some checks failed
build / inverter_gui_pipeline (push) Has been cancelled
Some checks failed
build / inverter_gui_pipeline (push) Has been cancelled
This commit is contained in:
11
vendor/github.com/jessevdk/go-flags/command.go
generated
vendored
11
vendor/github.com/jessevdk/go-flags/command.go
generated
vendored
@@ -30,6 +30,12 @@ type Command struct {
|
||||
// Whether positional arguments are required
|
||||
ArgsRequired bool
|
||||
|
||||
// Whether to pass all arguments after the first non option as remaining
|
||||
// command line arguments. This is equivalent to strict POSIX processing.
|
||||
// This is command-local version of PassAfterNonOption Parser flag. It
|
||||
// cannot be turned off when PassAfterNonOption Parser flag is set.
|
||||
PassAfterNonOption bool
|
||||
|
||||
commands []*Command
|
||||
hasBuiltinHelpGroup bool
|
||||
args []*Arg
|
||||
@@ -244,6 +250,7 @@ func (c *Command) scanSubcommandHandler(parentg *Group) scanHandler {
|
||||
longDescription := mtag.Get("long-description")
|
||||
subcommandsOptional := mtag.Get("subcommands-optional")
|
||||
aliases := mtag.GetMany("alias")
|
||||
passAfterNonOption := mtag.Get("pass-after-non-option")
|
||||
|
||||
subc, err := c.AddCommand(subcommand, shortDescription, longDescription, ptrval.Interface())
|
||||
|
||||
@@ -261,6 +268,10 @@ func (c *Command) scanSubcommandHandler(parentg *Group) scanHandler {
|
||||
subc.Aliases = aliases
|
||||
}
|
||||
|
||||
if len(passAfterNonOption) > 0 {
|
||||
subc.PassAfterNonOption = true
|
||||
}
|
||||
|
||||
return true, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user