moving run command
All checks were successful
code scans / scans (push) Successful in 26s
code scans / scans (pull_request) Successful in 24s

- run command is no longer attached to the 'command' subcmd
- run is standalone
This commit is contained in:
2025-11-26 13:04:14 -05:00
parent 210e574f51
commit b41b5e2be8
7 changed files with 26 additions and 21 deletions

View File

@@ -7,6 +7,7 @@ import (
"errors"
"fmt"
"code.jakeyoungdev.com/jake/mctl/constants"
"code.jakeyoungdev.com/jake/mctl/database"
"github.com/spf13/cobra"
)
@@ -23,8 +24,8 @@ var deleteCmd = &cobra.Command{
err = db.DeleteCmd(args[0])
if err != nil {
if err.Error() == ErrInit {
fmt.Println(ErrInitRsp)
if err.Error() == constants.ErrInit {
fmt.Println(constants.ErrInitRsp)
return
}
}