Status should take and arg and be spelled statusCmd

This commit is contained in:
2026-06-24 13:55:57 -04:00
parent a0dc720a1e
commit eed6cec6a2

View File

@@ -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 {