moving run command
- run command is no longer attached to the 'command' subcmd - run is standalone
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"code.jakeyoungdev.com/jake/mctl/cmd/command"
|
||||
"code.jakeyoungdev.com/jake/mctl/constants"
|
||||
"code.jakeyoungdev.com/jake/mctl/database"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
@@ -32,8 +32,8 @@ var destroyCmd = &cobra.Command{
|
||||
|
||||
err = db.Destroy()
|
||||
if err != nil {
|
||||
if err.Error() == command.ErrInit {
|
||||
fmt.Println(command.ErrInitRsp)
|
||||
if err.Error() == constants.ErrInit {
|
||||
fmt.Println(constants.ErrInitRsp)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user