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 {