From 3a44508d6f8e0bb8bdcfe53ab1c512ede06a1ba8 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Sat, 9 Mar 2019 16:41:51 +0800 Subject: [PATCH] Fix error message Closes #862 --- pkg/commands/edit/fix/fix.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/commands/edit/fix/fix.go b/pkg/commands/edit/fix/fix.go index e940d6d34..c0b01b991 100644 --- a/pkg/commands/edit/fix/fix.go +++ b/pkg/commands/edit/fix/fix.go @@ -30,7 +30,7 @@ func NewCmdFix(fSys fs.FileSystem) *cobra.Command { Long: "", Example: ` # Fix the missing and deprecated fields in kustomization file - kustomize fix + kustomize edit fix `, RunE: func(cmd *cobra.Command, args []string) error { @@ -40,6 +40,7 @@ func NewCmdFix(fSys fs.FileSystem) *cobra.Command { return cmd } +// RunFix runs `fix` command func RunFix(fSys fs.FileSystem) error { mf, err := kustfile.NewKustomizationFile(fSys) if err != nil {