diff --git a/cmd/ssx/cmd/delete.go b/cmd/ssx/cmd/delete.go index a918e86..f6d58df 100644 --- a/cmd/ssx/cmd/delete.go +++ b/cmd/ssx/cmd/delete.go @@ -10,6 +10,7 @@ func newDeleteCmd() *cobra.Command { var ids []int cmd := &cobra.Command{ Use: "delete", + Aliases: []string{"d", "del"}, Short: "delete entry by id", Example: "ssx delete -i1 [-i2 ...]", RunE: func(cmd *cobra.Command, args []string) error { diff --git a/cmd/ssx/cmd/list.go b/cmd/ssx/cmd/list.go index 49f7193..37f6908 100644 --- a/cmd/ssx/cmd/list.go +++ b/cmd/ssx/cmd/list.go @@ -6,8 +6,9 @@ import ( func newListCmd() *cobra.Command { cmd := &cobra.Command{ - Use: "list", - Short: "list all entries", + Use: "list", + Aliases: []string{"l", "ls"}, + Short: "list all entries", RunE: func(cmd *cobra.Command, args []string) error { return ssxInst.ListEntries() }} diff --git a/cmd/ssx/cmd/tag.go b/cmd/ssx/cmd/tag.go index b899608..d1da809 100644 --- a/cmd/ssx/cmd/tag.go +++ b/cmd/ssx/cmd/tag.go @@ -13,6 +13,7 @@ func newTagCmd() *cobra.Command { ) cmd := &cobra.Command{ Use: "tag", + Aliases: []string{"t"}, Short: "add or delete tag for entry by id", Example: "ssx tag -i [-t TAG1 [-t TAG2 ...]] [-d TAG3 [-d TAG4 ...]]", RunE: func(cmd *cobra.Command, args []string) error {