mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-07 08:52:06 +02:00
Optimize cmd pkg (#384)
Signed-off-by: yxxhero <aiopsclub@163.com> Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
+1
-1
@@ -10,12 +10,12 @@ import (
|
||||
// NewWriteValuesCmd returns write subcmd
|
||||
func NewWriteValuesCmd(globalCfg *config.GlobalImpl) *cobra.Command {
|
||||
writeValuesOptions := config.NewWriteValuesOptions()
|
||||
writeValuesImpl := config.NewWriteValuesImpl(globalCfg, writeValuesOptions)
|
||||
|
||||
cmd := &cobra.Command{
|
||||
Use: "write-values",
|
||||
Short: "Write values files for releases. Similar to `helmfile template`, write values files instead of manifests.",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
writeValuesImpl := config.NewWriteValuesImpl(globalCfg, writeValuesOptions)
|
||||
err := config.NewCLIConfigImpl(writeValuesImpl.GlobalImpl)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user