Add view command

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-24 08:30:00 +01:00
parent f9a05ab5d9
commit 0a6e2b075c
4 changed files with 68 additions and 5 deletions

View file

@ -1,6 +1,5 @@
/*
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
*/
package cmd
@ -10,8 +9,6 @@ import (
"github.com/spf13/cobra"
)
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "zet",
@ -38,6 +35,7 @@ func Execute() {
func init() {
rootCmd.AddCommand(titlesCmd)
rootCmd.AddCommand(viewCmd)
// Here you will define your flags and configuration settings.
// Cobra supports persistent flags, which, if defined here,
@ -45,5 +43,3 @@ func init() {
// rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.zet.yaml)")
}