adding subcommand aliases
All checks were successful
code scans / scans (push) Successful in 20s

This commit is contained in:
2025-11-26 13:13:00 -05:00
parent 64a0f7422a
commit 479204cb42
9 changed files with 9 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ import (
var addCmd = &cobra.Command{
Use: "add",
Aliases: []string{"a"},
Example: "mctl command add",
Short: "Saves a new command to the database",
SilenceUsage: true,

View File

@@ -10,6 +10,7 @@ import (
// CommandCmd is such a cool name lol
var CommandCmd = &cobra.Command{
Use: "command",
Aliases: []string{"c"},
Example: "mctl command <subcommand>",
}

View File

@@ -13,6 +13,7 @@ import (
var viewCmd = &cobra.Command{
Use: "view",
Aliases: []string{"v"},
Example: "mctl command view",
Short: "view all saved commands",
SilenceUsage: true,