Add alias for print command

This commit is contained in:
Radhi Fadlillah 2018-03-08 19:52:43 +07:00
parent 7077b903e5
commit efd20cb400

View file

@ -16,6 +16,7 @@ var (
Long: "Show the saved bookmarks by its DB index. " +
"Accepts space-separated list of indices (e.g. 5 6 23 4 110 45), hyphenated range (e.g. 100-200) or both (e.g. 1-3 7 9). " +
"If no arguments, all records with actual index from DB are shown.",
Aliases: []string{"list", "ls"},
Run: func(cmd *cobra.Command, args []string) {
// Read flags
useJSON, _ := cmd.Flags().GetBool("json")