99 "github.com/spf13/cobra"
1010)
1111
12- // rootCmd represents the base command when called without any subcommands
13- var rootCmd = & cobra.Command {
12+ // RootCmd represents the base command when called without any subcommands
13+ var RootCmd = & cobra.Command {
1414 Use : "otto" ,
1515 Short : "Document your code with ease" ,
1616 Long : `Code documentation made easy using GPT.` ,
@@ -20,9 +20,9 @@ var rootCmd = &cobra.Command{
2020}
2121
2222// Execute adds all child commands to the root command and sets flags appropriately.
23- // This is called by main.main(). It only needs to happen once to the rootCmd .
23+ // This is called by main.main(). It only needs to happen once to the RootCmd .
2424func Execute () {
25- err := rootCmd .Execute ()
25+ err := RootCmd .Execute ()
2626 if err != nil {
2727 os .Exit (1 )
2828 }
@@ -33,9 +33,9 @@ func init() {
3333 // Cobra supports persistent flags, which, if defined here,
3434 // will be global for your application.
3535
36- // rootCmd .PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.ottodocs.yaml)")
36+ // RootCmd .PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.ottodocs.yaml)")
3737
3838 // Cobra also supports local flags, which will only run
3939 // when this action is called directly.
40- // rootCmd .Flags().BoolP("toggle", "t", false, "Help message for toggle")
40+ // RootCmd .Flags().BoolP("toggle", "t", false, "Help message for toggle")
4141}
0 commit comments