From 1e4fc8539b2f33fac0ee475df1d301f7549eaa6d Mon Sep 17 00:00:00 2001 From: Suraj B M Date: Tue, 30 Sep 2025 21:18:08 +0530 Subject: [PATCH] chore: remove extra comments from files --- cmd/create.go | 10 ---------- cmd/edit.go | 13 ------------- cmd/export.go | 13 ------------- cmd/fetch.go | 13 ------------- cmd/init.go | 10 ---------- cmd/list.go | 10 ---------- cmd/pin.go | 13 ------------- cmd/pretty.go | 13 ------------- cmd/root.go | 13 ------------- cmd/switch.go | 10 ---------- cmd/update.go | 10 ---------- main.go | 2 +- 12 files changed, 1 insertion(+), 129 deletions(-) diff --git a/cmd/create.go b/cmd/create.go index 6b059b6..2adb965 100644 --- a/cmd/create.go +++ b/cmd/create.go @@ -166,14 +166,4 @@ var createCmd = &cobra.Command{ func init() { rootCmd.AddCommand(createCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // createCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // createCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/cmd/edit.go b/cmd/edit.go index bc9da0d..ed70fa0 100644 --- a/cmd/edit.go +++ b/cmd/edit.go @@ -1,6 +1,3 @@ -/* -Copyright © 2025 NAME HERE -*/ package cmd import ( @@ -44,14 +41,4 @@ var editCmd = &cobra.Command{ func init() { rootCmd.AddCommand(editCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // editCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // editCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/cmd/export.go b/cmd/export.go index adfebc8..26367eb 100644 --- a/cmd/export.go +++ b/cmd/export.go @@ -1,6 +1,3 @@ -/* -Copyright © 2025 NAME HERE -*/ package cmd import ( @@ -90,14 +87,4 @@ func init() { rootCmd.AddCommand(exportCmd) exportCmd.Flags().BoolP("all", "a", false, "Export all environments") - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // exportCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // exportCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/cmd/fetch.go b/cmd/fetch.go index ac4fed9..8f442ee 100644 --- a/cmd/fetch.go +++ b/cmd/fetch.go @@ -1,6 +1,3 @@ -/* -Copyright © 2025 NAME HERE -*/ package cmd import ( @@ -47,14 +44,4 @@ var fetchCmd = &cobra.Command{ func init() { rootCmd.AddCommand(fetchCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // fetchCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // fetchCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/cmd/init.go b/cmd/init.go index 68c729e..7e04cfb 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -43,14 +43,4 @@ var initCmd = &cobra.Command{ func init() { rootCmd.AddCommand(initCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // initCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // initCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/cmd/list.go b/cmd/list.go index 33fd964..1bbd6ea 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -68,14 +68,4 @@ var listCmd = &cobra.Command{ func init() { rootCmd.AddCommand(listCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // listCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // listCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/cmd/pin.go b/cmd/pin.go index fc2b344..d72df26 100644 --- a/cmd/pin.go +++ b/cmd/pin.go @@ -1,6 +1,3 @@ -/* -Copyright © 2025 NAME HERE -*/ package cmd import ( @@ -82,14 +79,4 @@ var pinCmd = &cobra.Command{ func init() { rootCmd.AddCommand(pinCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // pinCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // pinCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/cmd/pretty.go b/cmd/pretty.go index 201766f..8a8302e 100644 --- a/cmd/pretty.go +++ b/cmd/pretty.go @@ -1,6 +1,3 @@ -/* -Copyright © 2025 NAME HERE -*/ package cmd import ( @@ -21,14 +18,4 @@ var prettyCmd = &cobra.Command{ func init() { rootCmd.AddCommand(prettyCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // prettyCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // prettyCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/cmd/root.go b/cmd/root.go index 89e6ec8..dd8085f 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,6 +1,3 @@ -/* -Copyright © 2025 Suraj B M -*/ package cmd import ( @@ -17,8 +14,6 @@ import ( var rootCmd = &cobra.Command{ Use: "envy", Short: "A CLI tool to manage .env files for your projects", - // Uncomment the following line if your bare application - // has an action associated with it: Run: func(cmd *cobra.Command, args []string) { cwd, err := os.Getwd() utils.StopIfErr(err) @@ -78,13 +73,5 @@ func Execute() { } func init() { - // Here you will define your flags and configuration settings. - // Cobra supports persistent flags, which, if defined here, - // will be global for your application. - - // rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.envy.yaml)") - - // Cobra also supports local flags, which will only run - // when this action is called directly. rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/cmd/switch.go b/cmd/switch.go index 9c64f6b..962e60b 100644 --- a/cmd/switch.go +++ b/cmd/switch.go @@ -97,14 +97,4 @@ var switchCmd = &cobra.Command{ func init() { rootCmd.AddCommand(switchCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // switchCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // switchCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/cmd/update.go b/cmd/update.go index b315677..3681b30 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -49,14 +49,4 @@ var updateCmd = &cobra.Command{ func init() { rootCmd.AddCommand(updateCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // updateCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // updateCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/main.go b/main.go index dc5e4ee..144b854 100644 --- a/main.go +++ b/main.go @@ -1,5 +1,5 @@ /* -Copyright © 2025 NAME HERE +Copyright © 2025 Suraj B M */ package main