2022-12-19 03:04:34 +00:00
|
|
|
// Copyright © 2022 Roberto Hidalgo <chinampa@un.rob.mx>
|
2022-12-31 05:53:24 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2022-12-19 03:04:34 +00:00
|
|
|
package command
|
|
|
|
|
|
|
|
import (
|
|
|
|
_c "git.rob.mx/nidito/chinampa/internal/constants"
|
|
|
|
"git.rob.mx/nidito/chinampa/pkg/runtime"
|
|
|
|
)
|
|
|
|
|
|
|
|
var Root = &Command{
|
2022-12-29 19:05:58 +00:00
|
|
|
Summary: "Replace me with chinampa.Configure",
|
|
|
|
Description: "",
|
|
|
|
Path: []string{runtime.Executable},
|
2022-12-19 03:04:34 +00:00
|
|
|
Options: Options{
|
|
|
|
_c.HelpCommandName: &Option{
|
|
|
|
ShortName: "h",
|
|
|
|
Type: "bool",
|
|
|
|
Description: "Display help for any command",
|
|
|
|
},
|
|
|
|
"verbose": &Option{
|
|
|
|
ShortName: "v",
|
|
|
|
Type: "bool",
|
|
|
|
Default: runtime.VerboseEnabled(),
|
|
|
|
Description: "Log verbose output to stderr",
|
|
|
|
},
|
|
|
|
"version": &Option{
|
|
|
|
Type: "bool",
|
|
|
|
Default: false,
|
|
|
|
Description: "Display program version and exit",
|
|
|
|
},
|
|
|
|
"no-color": &Option{
|
|
|
|
Type: "bool",
|
|
|
|
Description: "Disable printing of colors to stderr",
|
|
|
|
Default: !runtime.ColorEnabled(),
|
|
|
|
},
|
|
|
|
"color": &Option{
|
|
|
|
Type: "bool",
|
|
|
|
Description: "Always print colors to stderr",
|
|
|
|
Default: runtime.ColorEnabled(),
|
|
|
|
},
|
|
|
|
"silent": &Option{
|
|
|
|
Type: "bool",
|
|
|
|
Description: "Silence non-error logging",
|
|
|
|
},
|
|
|
|
"skip-validation": &Option{
|
|
|
|
Type: "bool",
|
|
|
|
Description: "Do not validate any arguments or options",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|