finishing sqlite changes
- finished default/active server logic - dev done - needs testing
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
var viewCmd = &cobra.Command{
|
||||
Use: "view",
|
||||
Example: "mctl server view",
|
||||
Short: "view all servers",
|
||||
Short: "view all saved servers",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
db, err := database.New()
|
||||
cobra.CheckErr(err)
|
||||
@@ -27,7 +27,8 @@ var viewCmd = &cobra.Command{
|
||||
fmt.Printf("Name: %s\n", s.Name)
|
||||
fmt.Printf("Address: %s\n", s.Server)
|
||||
fmt.Printf("Port: %d\n", s.Port)
|
||||
fmt.Printf("Password: %s\n", s.Password)
|
||||
fmt.Println("Password: [REDACTED]")
|
||||
fmt.Printf("Default: %t\n", s.Default)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user