@@ -52,7 +52,7 @@ func init() {
52
52
53
53
RootCmd .Flags ().Bool ("version" , false , "Show version" )
54
54
55
- RootCmd .SetFlagErrorFunc (func (cmd * cobra.Command , err error ) error {
55
+ RootCmd .SetFlagErrorFunc (func (_ * cobra.Command , err error ) error {
56
56
if err == pflag .ErrHelp {
57
57
return err
58
58
}
@@ -62,7 +62,7 @@ func init() {
62
62
RootCmd .AddCommand (cmd .NewGetCmd ())
63
63
RootCmd .AddCommand (cmd .NewDownloadCmd ())
64
64
65
- RootCmd .PersistentPreRun = func (cmd * cobra.Command , args []string ) {
65
+ RootCmd .PersistentPreRun = func (_ * cobra.Command , _ []string ) {
66
66
if Verbose {
67
67
logrus .SetLevel (logrus .DebugLevel )
68
68
}
@@ -101,15 +101,15 @@ var RootCmd = &cobra.Command{
101
101
var versionCmd = & cobra.Command {
102
102
Use : "version" ,
103
103
Hidden : true ,
104
- Run : func (cmd * cobra.Command , args []string ) {
104
+ Run : func (_ * cobra.Command , _ []string ) {
105
105
fmt .Print (versionOutput )
106
106
},
107
107
}
108
108
109
109
var docsCmd = & cobra.Command {
110
110
Use : "docs" ,
111
111
Hidden : true ,
112
- Run : func (cmd * cobra.Command , args []string ) {
112
+ Run : func (_ * cobra.Command , _ []string ) {
113
113
RootCmd .DisableAutoGenTag = true
114
114
115
115
err := doc .GenMarkdownTree (RootCmd , "./docs" )
@@ -136,7 +136,7 @@ When installing GitHub CLI through a package manager, however, it's possible tha
136
136
no additional shell configuration is necessary to gain completion support. For
137
137
Homebrew, see <https://docs.brew.sh/Shell-Completion>
138
138
` ,
139
- RunE : func (cmd * cobra.Command , args []string ) error {
139
+ RunE : func (cmd * cobra.Command , _ []string ) error {
140
140
shellType , err := cmd .Flags ().GetString ("shell" )
141
141
if err != nil {
142
142
return err
0 commit comments