moby--moby/api/client/swarm
Sebastiaan van Stijn ebebd41769
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>
2016-08-02 16:44:02 +02:00
..
cmd.go Remove swarm inspect and use info instead 2016-07-25 20:31:10 -07:00
init.go Improve swarm join-token instructions 2016-08-02 16:44:02 +02:00
join.go Require listen address and advertise address to be an IP address or an interface name 2016-07-24 09:23:38 -07:00
join_token.go Improve swarm join-token instructions 2016-08-02 16:44:02 +02:00
leave.go Replace secrets with join tokens 2016-07-21 15:23:03 -07:00
opts.go Improve swarm join-token instructions 2016-08-02 16:44:02 +02:00
opts_test.go Replace secrets with join tokens 2016-07-21 15:23:03 -07:00
update.go Replace secrets with join tokens 2016-07-21 15:23:03 -07:00