DockerCLI/cli/command/stack/swarm
Djordje Lukic 568ea3a329
Refactor the `stack services` command to be uniform
Running `docker stack services <STACK> --orchestrator swarm would yield
the message "Noting found in stack: asdf" with an exit code 0. The same
command with kubernetes orchestrator would yield "nothing found in
stack: adsf" (note the lower-case "nothing") and a non-zero exit code.
This change makes the `stack services` command uniform for both
orchestrators. The logic of getting and printing services is split to
reuse the same formatting code.

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-10-29 15:58:10 +01:00
..
testdata Refactor stack command 2017-12-26 11:45:56 +01:00
client_test.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
common.go Refactor `stack` command/package 2018-06-26 14:07:26 +02:00
deploy.go Refactor `stack` command/package 2018-06-26 14:07:26 +02:00
deploy_bundlefile.go Refactor `stack` command/package 2018-06-26 14:07:26 +02:00
deploy_bundlefile_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
deploy_composefile.go Refactor `stack` command/package 2018-06-26 14:07:26 +02:00
deploy_composefile_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
deploy_test.go gofmt with go-1.11 2018-10-11 01:54:38 -07:00
list.go formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
ps.go Refactor `stack` command/package 2018-06-26 14:07:26 +02:00
remove.go Refactor `stack` command/package 2018-06-26 14:07:26 +02:00
services.go Refactor the `stack services` command to be uniform 2019-10-29 15:58:10 +01:00