Fix error message

Closes #862
This commit is contained in:
Yujun Zhang
2019-03-09 16:41:51 +08:00
parent 5294355c98
commit 3a44508d6f

View File

@@ -30,7 +30,7 @@ func NewCmdFix(fSys fs.FileSystem) *cobra.Command {
Long: "", Long: "",
Example: ` Example: `
# Fix the missing and deprecated fields in kustomization file # Fix the missing and deprecated fields in kustomization file
kustomize fix kustomize edit fix
`, `,
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
@@ -40,6 +40,7 @@ func NewCmdFix(fSys fs.FileSystem) *cobra.Command {
return cmd return cmd
} }
// RunFix runs `fix` command
func RunFix(fSys fs.FileSystem) error { func RunFix(fSys fs.FileSystem) error {
mf, err := kustfile.NewKustomizationFile(fSys) mf, err := kustfile.NewKustomizationFile(fSys)
if err != nil { if err != nil {