Skip to content

Commit

Permalink
cmd: allow more than one config yaml for build
Browse files Browse the repository at this point in the history
according to the documentation the following command is valid:
`linuxkit build equinixmetal.yml equinixmetal.arm64.yml`
(docs/platform-equinixmetal.md)

So, make it valid.

Signed-off-by: Christoph Ostarek <[email protected]>
  • Loading branch information
christoph-zededa committed Jul 10, 2024
1 parent c90f2ee commit 04dc904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/linuxkit/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func buildCmd() *cobra.Command {
The generated image can be in one of multiple formats which can be run on various platforms.
`,
Example: ` linuxkit build [options] <file>[.yml]`,
Args: cobra.ExactArgs(1),
Args: cobra.MinimumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
if name == "" && outputFile == "" {
conf := args[len(args)-1]
Expand Down

0 comments on commit 04dc904

Please sign in to comment.