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

Commit

Permalink
Merge pull request #682 from rumpl/inspect-exact-args
Browse files Browse the repository at this point in the history
App inspect requires exactly one arg
  • Loading branch information
rumpl committed Oct 11, 2019
2 parents 3b9a6e3 + 252c051 commit cf8ec17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit cf8ec17

Please sign in to comment.