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

Commit b118ccd

Browse files
Merge pull request #636 from ulyssessouza/rename-list-with-ls
Rename command `list` with `ls`
2 parents cc0d5ee + 84bddd8 commit b118ccd

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
@@ -277,7 +277,7 @@ func testDockerAppLifecycle(t *testing.T, useBindMount bool) {
277277
})
278278

279279
// List the installation and check the failed status
280-
cmd.Command = dockerCli.Command("app", "list")
280+
cmd.Command = dockerCli.Command("app", "ls")
281281
checkContains(t, icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(),
282282
[]string{
283283
`INSTALLATION\s+APPLICATION\s+LAST ACTION\s+RESULT\s+CREATED\s+MODIFIED\s+REFERENCE`,
@@ -337,7 +337,7 @@ STATUS
337337
})
338338

339339
// List the installed application
340-
cmd.Command = dockerCli.Command("app", "list")
340+
cmd.Command = dockerCli.Command("app", "ls")
341341
checkContains(t, icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(),
342342
[]string{
343343
`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)