mctl/cmd/command/command.go
jake 71ace969d3 null pointer fix
- need to nil check before pulling value
2025-06-19 17:28:56 -04:00

24 lines
602 B
Go

/*
Copyright © 2025 Jake jake.young.dev@gmail.com
*/
package command
import (
"github.com/spf13/cobra"
)
const (
//sqlite doesn't have an error type for this error, but we want to catch when this error is thrown
//and provide the proper response. It should not be treated as an error if the db isn't setup.
ErrInit = "sqlite3: SQL logic error: no such table: commands"
ErrInitRsp = "The 'init' command must be run before mctl can be used"
)
// CommandCmd is such a cool name lol
var CommandCmd = &cobra.Command{
Use: "command",
Example: "mctl command <subcommand>",
}
func init() {}