mirror of
https://github.com/onyx-and-iris/gobs-cli.git
synced 2026-04-21 00:23:41 +00:00
Compare commits
1 Commits
v0.5.0
...
da010d67a0
| Author | SHA1 | Date | |
|---|---|---|---|
| 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"),
|
||||
|
||||
Reference in New Issue
Block a user