feat: rename create and delete commands to add and del

This commit is contained in:
2026-03-29 19:46:43 +02:00
parent 68f4b67283
commit 535626d198
5 changed files with 23 additions and 23 deletions

View File

@@ -38,8 +38,8 @@ var aliasCmd = &cobra.Command{
},
}
var aliasDeleteCmd = &cobra.Command{
Use: "delete <name>", Short: "Delete an alias", Args: cobra.ExactArgs(1),
var aliasDelCmd = &cobra.Command{
Use: "del <name>", Short: "Delete an alias", Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
if err := cfg.DeleteAlias(args[0]); err != nil {
fmt.Fprintln(os.Stderr, err)
@@ -51,6 +51,6 @@ var aliasDeleteCmd = &cobra.Command{
func init() {
rootCmd.AddCommand(aliasCmd)
aliasCmd.AddCommand(aliasDeleteCmd)
aliasCmd.AddCommand(aliasDelCmd)
aliasCmd.Flags().StringVar(&aliasDesc, "desc", "", "description for the alias")
}