cmd-zet/cmd/titles.go

25 lines
619 B
Go
Raw Permalink Normal View History

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: "A brief description of your command",
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Run: func(cmd *cobra.Command, args []string) {
zets := lib.GetAllZets()
lib.ParseZetList(zets)
},
}