Skip to content

Commit 35fd90b

Browse files
committed
chore(cmd): remove commented Cobra boilerplate code
Remove dead commented code from version.go and root.go that was auto-generated by Cobra CLI scaffolding. This boilerplate provided no value and cluttered the codebase. Changes: - Remove commented flag configuration examples from version.go - Remove commented Run function example from root.go Closes #45
1 parent 58dc510 commit 35fd90b

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

cmd/root.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ Use RSA or ECDSA for scenarios requiring public/private key pairs.`,
5050
5151
# Encode with RS256 using private key
5252
jwt-cli encode rs256 --payload '{"user":"alice"}' --private-key-file RS256.key`,
53-
// Uncomment the following line if your bare application
54-
// has an action associated with it:
55-
// Run: func(cmd *cobra.Command, args []string) { },
5653
}
5754

5855
// Execute runs the root command.

cmd/version.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,4 @@ var versionCmd = &cobra.Command{
2020

2121
func init() {
2222
rootCmd.AddCommand(versionCmd)
23-
// Here you will define your flags and configuration settings.
24-
// Cobra supports Persistent Flags which will work for this command
25-
// and all subcommands, e.g.:
26-
// versionCmd.PersistentFlags().String("foo", "", "A help for foo")
27-
// Cobra supports local flags which will only run when this command
28-
// is called directly, e.g.:
29-
// versionCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
3023
}

0 commit comments

Comments
 (0)