Skip to content

Commit 44d60dd

Browse files
committed
feature: add default handling to version command
1 parent 17a06a7 commit 44d60dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kustomize/commands/version/version.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ func (o *Options) Run() error {
8181
return errors.WrapPrefixf(err, "marshalling provenance to json")
8282
}
8383
fmt.Fprintln(o.Writer, string(marshalled))
84+
default:
85+
return fmt.Errorf("error: --output must be 'yaml' or 'json'")
8486
}
8587
return nil
8688
}

0 commit comments

Comments
 (0)