chore: list: withPreparedCharts -> skipCharts

Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
This commit is contained in:
Viktor Oreshkin
2022-09-06 09:54:51 +03:00
parent 4dd73d4efb
commit af52c960f4
6 changed files with 19 additions and 22 deletions
+1 -4
View File
@@ -9,7 +9,6 @@ import (
// NewListCmd returns list subcmd
func NewListCmd(globalCfg *config.GlobalImpl) *cobra.Command {
var skipCharts bool
listOptions := config.NewListOptions()
listImpl := config.NewListImpl(globalCfg, listOptions)
@@ -17,8 +16,6 @@ func NewListCmd(globalCfg *config.GlobalImpl) *cobra.Command {
Use: "list",
Short: "List releases defined in state file",
RunE: func(cmd *cobra.Command, args []string) error {
listOptions.WithPreparedCharts = !skipCharts
err := config.NewCLIConfigImpl(listImpl.GlobalImpl)
if err != nil {
return err
@@ -35,7 +32,7 @@ func NewListCmd(globalCfg *config.GlobalImpl) *cobra.Command {
f := cmd.Flags()
f.BoolVar(&listOptions.KeepTempDir, "keep-temp-dir", false, "Keep temporary directory")
f.BoolVar(&skipCharts, "skip-charts", false, "don't prepare charts when listing releases")
f.BoolVar(&listOptions.SkipCharts, "skip-charts", false, "don't prepare charts when listing releases")
f.StringVar(&listOptions.Output, "output", "", "output releases list as a json string")
return cmd