Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/golangci/golangci-…
Browse files Browse the repository at this point in the history
…lint-action-4.0.0
  • Loading branch information
dduportal authored Feb 15, 2024
2 parents 1edd513 + ea99740 commit d73ac75
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/jv/jv.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func init() {

RootCmd.Flags().Bool("version", false, "Show version")

RootCmd.SetFlagErrorFunc(func(cmd *cobra.Command, err error) error {
RootCmd.SetFlagErrorFunc(func(_ *cobra.Command, err error) error {
if err == pflag.ErrHelp {
return err
}
Expand All @@ -62,7 +62,7 @@ func init() {
RootCmd.AddCommand(cmd.NewGetCmd())
RootCmd.AddCommand(cmd.NewDownloadCmd())

RootCmd.PersistentPreRun = func(cmd *cobra.Command, args []string) {
RootCmd.PersistentPreRun = func(_ *cobra.Command, _ []string) {
if Verbose {
logrus.SetLevel(logrus.DebugLevel)
}
Expand Down Expand Up @@ -101,15 +101,15 @@ var RootCmd = &cobra.Command{
var versionCmd = &cobra.Command{
Use: "version",
Hidden: true,
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, _ []string) {
fmt.Print(versionOutput)
},
}

var docsCmd = &cobra.Command{
Use: "docs",
Hidden: true,
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, _ []string) {
RootCmd.DisableAutoGenTag = true

err := doc.GenMarkdownTree(RootCmd, "./docs")
Expand All @@ -136,7 +136,7 @@ When installing GitHub CLI through a package manager, however, it's possible tha
no additional shell configuration is necessary to gain completion support. For
Homebrew, see <https://docs.brew.sh/Shell-Completion>
`,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
shellType, err := cmd.Flags().GetString("shell")
if err != nil {
return err
Expand Down

0 comments on commit d73ac75

Please sign in to comment.