Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

App inspect requires exactly one arg #682

Merged
merged 1 commit into from
Oct 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e/commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func TestInspectApp(t *testing.T) {
cmd.Dir = dir.Path()
icmd.RunCmd(cmd).Assert(t, icmd.Expected{
ExitCode: 1,
Err: "could not parse '' as a valid reference",
Err: `"docker app inspect" requires exactly 1 argument.`,
})

cmd.Command = dockerCli.Command("app", "build", filepath.Join("testdata", "simple", "simple.dockerapp"), "--tag", "simple-app:1.0.0")
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func inspectCmd(dockerCli command.Cli) *cobra.Command {
Short: "Shows metadata, parameters and a summary of the Compose file for a given application",
Example: `$ docker app inspect my-installed-app
$docker app inspect my-app:1.0.0`,
Args: cli.RequiresMaxArgs(1),
Args: cli.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
return runInspect(dockerCli, firstOrEmpty(args), opts)
},
Expand Down