moby/api/client/swarm
Sebastiaan van Stijn 40baa97ab1 Improve swarm join-token instructions
this change improves the instructions for
swarm join-token and swarm init;

- only print the join-token command for workers
  instead of for both managers and workers, to
  prevent users from copying the wrong command.
  An extra line is added to explain how to obtain
  the manager token.
- print a message that a token was rotated
  sucesfully if '--rotate' is used.
- add some extra white-space before / after
  the join commands, to make copy/pasting
  easier.

this change also does some refactoring of join-token;

- move flagname-constants together with other constants
- use variables for selected role ("worker" / "manager")
  to prevent checking for them multiple times, and to
  keep the "worker" / "manager" sting centralized
- add an extra blank line after "join-token" instructions
  this makes it easier to copy, and cleans up the
  code a tiny bit

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit ebebd41769)
Signed-off-by: Tibor Vass <tibor@docker.com>
2016-08-11 17:56:45 -07:00
..
cmd.go Remove swarm inspect and use info instead 2016-07-26 04:37:31 -07:00
init.go Improve swarm join-token instructions 2016-08-11 17:56:45 -07:00
join.go Require listen address and advertise address to be an IP address or an interface name 2016-07-25 23:18:12 -07:00
join_token.go Improve swarm join-token instructions 2016-08-11 17:56:45 -07:00
leave.go Replace secrets with join tokens 2016-07-25 23:16:59 -07:00
opts.go Improve swarm join-token instructions 2016-08-11 17:56:45 -07:00
opts_test.go Replace secrets with join tokens 2016-07-25 23:16:59 -07:00
update.go Replace secrets with join tokens 2016-07-25 23:16:59 -07:00