Skip to content

Commit 7be2897

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

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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("--output must be 'yaml' or 'json'")
8486
}
8587
return nil
8688
}

0 commit comments

Comments
 (0)