mirror of
https://github.com/onyx-and-iris/gobs-cli.git
synced 2025-06-09 21:20:34 +01:00
uppercase CLI struct name
This commit is contained in:
parent
0c695298fd
commit
da010d67a0
6
main.go
6
main.go
@ -24,9 +24,9 @@ type ObsConfig struct {
|
||||
Timeout int `flag:"timeout" help:"Timeout in seconds." default:"5" env:"OBS_TIMEOUT"`
|
||||
}
|
||||
|
||||
// cli is the main command line interface structure.
|
||||
// CLI is the main command line interface structure.
|
||||
// It embeds the ObsConfig struct to inherit its fields and flags.
|
||||
type cli struct {
|
||||
type CLI struct {
|
||||
ObsConfig `embed:"" help:"OBS WebSocket configuration."`
|
||||
|
||||
Man mangokong.ManFlag `help:"Print man page."`
|
||||
@ -58,7 +58,7 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
var cli cli
|
||||
var cli CLI
|
||||
ctx := kong.Parse(
|
||||
&cli,
|
||||
kong.Name("GOBS-CLI"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user