package cmd import ( "github.com/spf13/cobra" "code.oliverdavies.uk/opdavies/cmd-zet/internal/lib" ) var titlesCmd = &cobra.Command{ Use: "titles", Aliases: []string{"t"}, Short: "Print IDs and titles of zettels", Long: `Print the IDs and titles of all zettels.`, Run: func(cmd *cobra.Command, args []string) { zets := lib.GetAllZets() lib.ParseZetList(zets) }, }