/* Copyright © 2023 NAME HERE */ package cmd import ( "fmt" "github.com/spf13/cobra" "github.com/spf13/viper" ) // rootCmd represents the base command when called without any subcommands var validateCmd = &cobra.Command{ Use: "validate", Short: "validate command", Long: `A longer description that spans multiple lines and likely contains examples and usage of using your application. 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.`, RunE: func(cmd *cobra.Command, args []string) error { fmt.Printf("viper is providing %q for format flag\n", viper.GetString("format")) return nil }, } func init() { rootCmd.AddCommand(validateCmd) }