[fix] Testing fixes
- sqlite error handling and wrapping - more responsive commands - database updates
This commit is contained in:
@@ -9,7 +9,6 @@ import (
|
||||
"os"
|
||||
|
||||
"code.jakeyoungdev.com/jake/mctl/client"
|
||||
"code.jakeyoungdev.com/jake/mctl/database"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@@ -26,10 +25,6 @@ var loginCmd = &cobra.Command{
|
||||
Long: `Login to default server and enter command loop. The default server
|
||||
is used unless the server flag is set`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
db, err := database.New()
|
||||
cobra.CheckErr(err)
|
||||
defer db.Close()
|
||||
|
||||
cli, err := client.New(server)
|
||||
cobra.CheckErr(err)
|
||||
defer cli.Close()
|
||||
|
Reference in New Issue
Block a user