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

Commit 84bddd8

Browse files
author
Ulysses Souza
committed
Rename command list with ls
Signed-off-by: Ulysses Souza <[email protected]>
1 parent dc0d83c commit 84bddd8

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ Commands:
357357
init Initialize Docker Application definition
358358
inspect Shows metadata, parameters and a summary of the Compose file for a given application
359359
install Install an application
360-
list List the installations and their last known installation result
360+
ls List the installations and their last known installation result
361361
pull Pull an application package from a registry
362362
push Push an application package to a registry
363363
render Render the Compose file for an Application Package

e2e/commands_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ func testDockerAppLifecycle(t *testing.T, useBindMount bool) {
274274
})
275275

276276
// List the installation and check the failed status
277-
cmd.Command = dockerCli.Command("app", "list")
277+
cmd.Command = dockerCli.Command("app", "ls")
278278
checkContains(t, icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(),
279279
[]string{
280280
`INSTALLATION\s+APPLICATION\s+LAST ACTION\s+RESULT\s+CREATED\s+MODIFIED\s+REFERENCE`,
@@ -334,7 +334,7 @@ STATUS
334334
})
335335

336336
// List the installed application
337-
cmd.Command = dockerCli.Command("app", "list")
337+
cmd.Command = dockerCli.Command("app", "ls")
338338
checkContains(t, icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(),
339339
[]string{
340340
`INSTALLATION\s+APPLICATION\s+LAST ACTION\s+RESULT\s+CREATED\s+MODIFIED\s+REFERENCE`,

e2e/pushpull_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func TestPushPullInstall(t *testing.T) {
221221
assert.Check(t, cmp.Contains(icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(), ref))
222222

223223
// listing the installed application shows the pulled application reference
224-
cmd.Command = dockerCli.Command("app", "list")
224+
cmd.Command = dockerCli.Command("app", "ls")
225225
checkContains(t, icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(),
226226
[]string{
227227
fmt.Sprintf(`%s\s+push-pull \(1.1.0-beta1\)\s+install\s+success\s+.+second[s]?\sago\s+.+second[s]?\sago\s+%s`, t.Name(), ref+tag),

e2e/testdata/plugin-usage-experimental.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Commands:
1111
init Initialize Docker Application definition
1212
inspect Shows metadata, parameters and a summary of the Compose file for a given application
1313
install Install an application
14-
list List the installations and their last known installation result
14+
ls List the installations and their last known installation result
1515
pull Pull an application package from a registry
1616
push Push an application package to a registry
1717
render Render the Compose file for an Application Package

e2e/testdata/plugin-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Commands:
1111
init Initialize Docker Application definition
1212
inspect Shows metadata, parameters and a summary of the Compose file for a given application
1313
install Install an application
14-
list List the installations and their last known installation result
14+
ls List the installations and their last known installation result
1515
pull Pull an application package from a registry
1616
push Push an application package to a registry
1717
render Render the Compose file for an Application Package

internal/commands/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ func listCmd(dockerCli command.Cli) *cobra.Command {
4343
var opts listOptions
4444

4545
cmd := &cobra.Command{
46-
Use: "list [OPTIONS]",
46+
Use: "ls [OPTIONS]",
4747
Short: "List the installations and their last known installation result",
48-
Aliases: []string{"ls"},
48+
Aliases: []string{"list"},
4949
Args: cli.NoArgs,
5050
RunE: func(cmd *cobra.Command, args []string) error {
5151
return runList(dockerCli, opts)

0 commit comments

Comments
 (0)