diff --git a/e2e/commands_test.go b/e2e/commands_test.go index e09cae04c..a4de01417 100644 --- a/e2e/commands_test.go +++ b/e2e/commands_test.go @@ -316,7 +316,7 @@ func TestDockerAppLifecycle(t *testing.T) { cmd.Command = dockerCli.Command("app", "ls") checkContains(t, icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(), []string{ - `INSTALLATION\s+APPLICATION\s+LAST ACTION\s+RESULT\s+CREATED\s+MODIFIED\s+REFERENCE`, + `RUNNING APP\s+APP NAME\s+LAST ACTION\s+RESULT\s+CREATED\s+MODIFIED\s+REFERENCE`, fmt.Sprintf(`%s\s+simple \(1.1.0-beta1\)\s+install\s+failure\s+.+second[s]?\sago\s+.+second[s]?\sago\s+`, appName), }) @@ -344,7 +344,7 @@ func TestDockerAppLifecycle(t *testing.T) { cmd.Command = dockerCli.Command("app", "ls") checkContains(t, icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(), []string{ - `INSTALLATION\s+APPLICATION\s+LAST ACTION\s+RESULT\s+CREATED\s+MODIFIED\s+REFERENCE`, + `RUNNING APP\s+APP NAME\s+LAST ACTION\s+RESULT\s+CREATED\s+MODIFIED\s+REFERENCE`, fmt.Sprintf(`%s\s+simple \(1.1.0-beta1\)\s+install\s+success\s+.+second[s]?\sago\s+.+second[s]?\sago\s+`, appName), }) diff --git a/examples/README.md b/examples/README.md index e1f7ba21e..aa87e64ef 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,6 +1,6 @@ ## Examples -This is a collection of [Docker App](./README.MD) examples. Most of them are fairly simple, and intended to illustrate various aspects of the Docker App product. +This is a collection of [Docker App](../README.MD) examples. Most of them are fairly simple, and intended to illustrate various aspects of the Docker App product. ### [Hello World: Starting example](hello-world) diff --git a/examples/hello-world/README.md b/examples/hello-world/README.md index ee0b61735..634a25497 100644 --- a/examples/hello-world/README.md +++ b/examples/hello-world/README.md @@ -137,7 +137,7 @@ Next, you can check the list of running Apps: ```shell $ docker app ls -INSTALLATION APPLICATION LAST ACTION RESULT CREATED MODIFIED REFERENCE +RUNNING APP APP NAME LAST ACTION RESULT CREATED MODIFIED REFERENCE myhelloworld hello-world (0.1.0) install success About a minute ago About a minute ago docker.io/myrepo/hello-world:0.1.0 ``` @@ -147,7 +147,7 @@ Finally you can get detailed information about a running App using the `docker a ```shell $ docker app inspect myhelloworld --pretty -Installation: +Running App: Name: myhelloworld Created: 3 minutes ago Modified: 3 minutes ago @@ -156,7 +156,7 @@ Installation: Result: success Ochestrator: swarm -Application: +App: Name: hello-world Version: 0.1.0 Image Reference: docker.io/myrepo/hello-world:0.1.0 diff --git a/internal/commands/list.go b/internal/commands/list.go index b66c71f02..46c66f14f 100644 --- a/internal/commands/list.go +++ b/internal/commands/list.go @@ -21,8 +21,8 @@ var ( header string value func(i *store.Installation) string }{ - {"INSTALLATION", func(i *store.Installation) string { return i.Name }}, - {"APPLICATION", func(i *store.Installation) string { return fmt.Sprintf("%s (%s)", i.Bundle.Name, i.Bundle.Version) }}, + {"RUNNING APP", func(i *store.Installation) string { return i.Name }}, + {"APP NAME", func(i *store.Installation) string { return fmt.Sprintf("%s (%s)", i.Bundle.Name, i.Bundle.Version) }}, {"LAST ACTION", func(i *store.Installation) string { return i.Result.Action }}, {"RESULT", func(i *store.Installation) string { return i.Result.Status }}, {"CREATED", func(i *store.Installation) string { diff --git a/internal/inspect/inspect.go b/internal/inspect/inspect.go index 873b00a92..0eefd4060 100644 --- a/internal/inspect/inspect.go +++ b/internal/inspect/inspect.go @@ -65,8 +65,8 @@ type Application struct { } type AppInfo struct { - Installation Installation `yaml:"Installation,omitempty" json:"Installation,omitempty"` - Application Application `yaml:"Application,omitempty" json:"Application,omitempty"` + Installation Installation `yaml:"Running App,omitempty" json:"RunningApp,omitempty"` + Application Application `yaml:"App,omitempty" json:"App,omitempty"` Parameters map[string]interface{} `yaml:"Parameters,omitempty" json:"Parameters,omitempty"` } diff --git a/internal/inspect/testdata/inspect-app-json.golden b/internal/inspect/testdata/inspect-app-json.golden index 15ba5104b..ed467c59c 100644 --- a/internal/inspect/testdata/inspect-app-json.golden +++ b/internal/inspect/testdata/inspect-app-json.golden @@ -1,5 +1,5 @@ { - "Installation": { + "RunningApp": { "Name": "hello-world", "Created": "1 day ago", "Modified": "17 hours ago", @@ -8,7 +8,7 @@ "Result": "success", "Orchestrator": "swarm" }, - "Application": { + "App": { "Name": "hello-world", "Version": "0.1.0", "ImageReference": "docker.io/sirot/hello-world:0.1.0" diff --git a/internal/inspect/testdata/inspect-app-pretty.golden b/internal/inspect/testdata/inspect-app-pretty.golden index e9d8973f5..691355a89 100644 --- a/internal/inspect/testdata/inspect-app-pretty.golden +++ b/internal/inspect/testdata/inspect-app-pretty.golden @@ -1,4 +1,4 @@ -Installation: +Running App: Name: hello-world Created: 1 day ago Modified: 17 hours ago @@ -7,7 +7,7 @@ Installation: Result: success Ochestrator: swarm -Application: +App: Name: hello-world Version: 0.1.0 Image Reference: docker.io/sirot/hello-world:0.1.0