[fix] bugfixes from testing
- sqlite wrapper func context bug
This commit is contained in:
@@ -5,6 +5,7 @@ package server
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"code.jakeyoungdev.com/jake/mctl/database"
|
||||
"github.com/spf13/cobra"
|
||||
@@ -21,6 +22,8 @@ var activeCmd = &cobra.Command{
|
||||
|
||||
err = db.SetActiveServer(args[0])
|
||||
cobra.CheckErr(err)
|
||||
|
||||
fmt.Println("Active server updated")
|
||||
},
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
if len(args) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user