Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit f75016b

Browse files
Merge pull request #496 from silvin-lubecki/clean-bundle-command
Rename --out to --output in bundle command
2 parents db3d126 + cee40ff commit f75016b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

e2e/commands_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ func TestBundle(t *testing.T) {
260260
icmd.RunCmd(cmd).Assert(t, icmd.Success)
261261

262262
// Bundle the docker application package to a CNAB bundle, using the build-context.
263-
cmd.Command = dockerCli.Command("app", "bundle", filepath.Join("testdata", "simple", "simple.dockerapp"), "--out", tmpDir.Join("bundle.json"))
263+
cmd.Command = dockerCli.Command("app", "bundle", filepath.Join("testdata", "simple", "simple.dockerapp"), "--output", tmpDir.Join("bundle.json"))
264264
icmd.RunCmd(cmd).Assert(t, icmd.Success)
265265

266266
// Check the resulting CNAB bundle.json

e2e/testdata/plugin-usage-experimental.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Usage: docker app COMMAND
44
Build and deploy Docker Application Packages.
55

66
Commands:
7-
bundle Create a CNAB invocation image and bundle.json for the application.
7+
bundle Create a CNAB invocation image and bundle.json for the application
88
completion Generates completion scripts for the specified shell (bash or zsh)
99
init Start building a Docker application
1010
inspect Shows metadata, parameters and a summary of the compose file for a given application

e2e/testdata/plugin-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Usage: docker app COMMAND
44
Build and deploy Docker Application Packages.
55

66
Commands:
7-
bundle Create a CNAB invocation image and bundle.json for the application.
7+
bundle Create a CNAB invocation image and bundle.json for the application
88
completion Generates completion scripts for the specified shell (bash or zsh)
99
init Start building a Docker application
1010
inspect Shows metadata, parameters and a summary of the compose file for a given application

internal/commands/bundle.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ func bundleCmd(dockerCli command.Cli) *cobra.Command {
2828
var opts bundleOptions
2929
cmd := &cobra.Command{
3030
Use: "bundle [<app-name>]",
31-
Short: "Create a CNAB invocation image and bundle.json for the application.",
31+
Short: "Create a CNAB invocation image and bundle.json for the application",
3232
Args: cli.RequiresMaxArgs(1),
3333
RunE: func(cmd *cobra.Command, args []string) error {
3434
return runBundle(dockerCli, firstOrEmpty(args), opts)
3535
},
3636
}
3737

38-
cmd.Flags().StringVarP(&opts.out, "out", "o", "bundle.json", "path to the output bundle.json (- for stdout)")
38+
cmd.Flags().StringVarP(&opts.out, "output", "o", "bundle.json", "path to the output bundle.json (- for stdout)")
3939
return cmd
4040
}
4141

0 commit comments

Comments
 (0)