[fix] bugfixes from testing

- sqlite wrapper func context bug
This commit is contained in:
2025-06-19 15:05:09 -04:00
parent 473bebb04d
commit 2045a75d68
5 changed files with 73 additions and 54 deletions

View File

@@ -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 {