4 Commits

Author SHA1 Message Date
35fb9fc270 version bump 2025-04-17 17:34:32 -04:00
6fe91f816b view command response fix 2025-04-17 17:32:16 -04:00
f8a9528e0f delete added, more details below (#3)
- readme updates
- delete command added
- commands now saved in a map vs fields
- login and run now ensure config has been run to prevent errors

Reviewed-on: #3
Co-authored-by: jake <jake.young.dev@gmail.com>
Co-committed-by: jake <jake.young.dev@gmail.com>
2025-04-17 21:25:54 +00:00
a9c6400761 dev/command-saving (#1)
Reviewed-on: #1
Co-authored-by: jake <jake.young.dev@gmail.com>
Co-committed-by: jake <jake.young.dev@gmail.com>
2025-04-17 15:40:54 +00:00
3 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/* /*
Copyright © 2025 NAME HERE <EMAIL ADDRESS> Copyright © 2025 Jake jake.young.dev@gmail.com
*/ */
package cmd package cmd

View File

@@ -14,7 +14,7 @@ var rootCmd = &cobra.Command{
Use: "mctl", Use: "mctl",
Short: "A remote console client", Short: "A remote console client",
Long: `mctl is a terminal-friendly remote console client made to manage game servers.`, Long: `mctl is a terminal-friendly remote console client made to manage game servers.`,
Version: "v0.2.0", Version: "v0.3.2",
// Run: func(cmd *cobra.Command, args []string) { }, // Run: func(cmd *cobra.Command, args []string) { },
} }

View File

@@ -32,7 +32,7 @@ var viewCmd = &cobra.Command{
return return
} }
fmt.Printf("Command: %s", custom.(string)) fmt.Printf("Command: %s\n", custom.(string))
}, },
PreRunE: func(cmd *cobra.Command, args []string) error { PreRunE: func(cmd *cobra.Command, args []string) error {
if len(args) == 0 { if len(args) == 0 {