[fix] Testing fixes
- sqlite error handling and wrapping - more responsive commands - database updates
This commit is contained in:
@@ -9,9 +9,10 @@ import (
|
||||
)
|
||||
|
||||
var initCmd = &cobra.Command{
|
||||
Use: "init",
|
||||
Example: "mctl init",
|
||||
Short: "initializes the database tables, must be run before mctl can be used",
|
||||
Use: "init",
|
||||
Example: "mctl init",
|
||||
Short: "initializes the database tables, must be run before mctl can be used",
|
||||
SilenceUsage: true,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
db, err := database.New()
|
||||
cobra.CheckErr(err)
|
||||
|
||||
Reference in New Issue
Block a user