mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-20 15:00:51 +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 (
|
||||
// NewDestroyCmd returns destroy subcmd
|
||||
func NewDestroyCmd(globalCfg *config.GlobalImpl) *cobra.Command {
|
||||
destroyOptions := config.NewDestroyOptions()
|
||||
destroyImpl := config.NewDestroyImpl(globalCfg, destroyOptions)
|
||||
|
||||
cmd := &cobra.Command{
|
||||
Use: "destroy",
|
||||
Short: "Destroys and then purges releases",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
destroyImpl := config.NewDestroyImpl(globalCfg, destroyOptions)
|
||||
err := config.NewCLIConfigImpl(destroyImpl.GlobalImpl)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user