Skip to content

Commit

Permalink
fix: Discard useless helm log output (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Jun 29, 2023
1 parent a40e22f commit ace744e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ repos:
stages: [commit]
- id: end-of-file-fixer
stages: [commit]
exclude: ^docs/doc/
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
Expand Down
4 changes: 4 additions & 0 deletions cmd/register.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package cmd

import (
"io"
"log"
"os"

"github.com/spf13/cobra"
Expand Down Expand Up @@ -29,6 +31,7 @@ func GetRootCommand() *cobra.Command {
return err
}

log.SetOutput(io.Discard)
images.SetLogger(images.LogLevel)
images.SetWriter(os.Stdout)
cmd.SilenceUsage = true
Expand All @@ -53,6 +56,7 @@ func GetRootCommand() *cobra.Command {
registerFlags(rootCommand, &images)

rootCommand.SetUsageTemplate(getUsageTemplate())
rootCommand.DisableAutoGenTag = true

return rootCommand
}
Expand Down
1 change: 0 additions & 1 deletion docs/doc/list-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,3 @@ list-images CHART|RELEASE [flags]
-y, --yaml enable the flag to display images retrieved in yaml format (disabled by default)
```

###### Auto generated by spf13/cobra on 27-Jun-2023

0 comments on commit ace744e

Please sign in to comment.