From eed6cec6a24bf9e7bbbf9a6a7adfdea84657bfa5 Mon Sep 17 00:00:00 2001 From: vxclutch Date: Wed, 24 Jun 2026 13:55:57 -0400 Subject: [PATCH] Status should take and arg and be spelled statusCmd --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 615044b..31095be 100644 --- a/main.go +++ b/main.go @@ -60,10 +60,11 @@ var sayCmd = &cobra.Command{ Args: cobra.MinimumNArgs(1), } -var statusCMd = &cobra.Command{ +var statusCmd = &cobra.Command{ Use: "cmd", Short: "Get the status of the server", Run: server.Status, + Args: cobra.MinimumNArgs(1), } //go:embed templates/docker-compose.yml @@ -87,7 +88,7 @@ func init() { rootCmd.AddCommand(restartCmd) rootCmd.AddCommand(shellCmd) rootCmd.AddCommand(sayCmd) - rootCmd.AddCommand(statusCMd) + rootCmd.AddCommand(statusCmd) t, err := template.New("compose").Parse(dockerCompose) if err != nil {