cmd-zet/cmd/titles.go
Oliver Davies 5a64827825 Update command descriptions
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
2025-09-30 00:48:16 +01:00

19 lines
389 B
Go

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)
},
}