From da010d67a0651014cd4b39d674fc21ddf5c87e90 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 22 May 2025 16:41:01 +0100 Subject: [PATCH] uppercase CLI struct name --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 85f67ad..c77d679 100644 --- a/main.go +++ b/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"),