| | Preliminary support for basic juju id commands: juju add-user <username> <password> if password is not supplied uses gopass to take the password from the command line juju remove-user <username> doesn't actually remove the user. But mark them as inactive add-user and remove-user aren't registered yet as they are useless without login. But the details of this are still being worked out. This branch also contains fixes for lp:1285256. The EnvCommandBase includes a function for ensuring the envname is not "". https://code.launchpad.net/~mattyw/juju-core/user-add-remove-cli/+merge/205715 (do not edit description out of merge proposal) Total comments: 57 | Unified diffs | Side-by-side diffs | Delta from patch set | Stats (+497 lines, -109 lines) | Patch |  | A | [revision details] | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 1 chunk | +2 lines, -0 lines | 0 comments | Download |  | M | cmd/cmd.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +3 lines, -22 lines | 0 comments | Download |  | M | cmd/envcmd/environmentcommand.go | View | 1 2 3 4 5 6 7 8 9 10 | 4 chunks | +15 lines, -2 lines | 0 comments | Download |  | M | cmd/envcmd/environmentcommand_test.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +21 lines, -18 lines | 0 comments | Download |  | M | cmd/envcmd/export_test.go | View | 1 2 3 4 5 6 7 8 9 10 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | cmd/juju/addmachine.go | View | 1 2 3 4 5 6 7 8 9 10 | 3 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/addrelation.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/addunit.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +2 lines, -1 line | 0 comments | Download |  | A | cmd/juju/adduser.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 1 chunk | +71 lines, -0 lines | 0 comments | Download |  | A | cmd/juju/adduser_test.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 1 chunk | +28 lines, -0 lines | 0 comments | Download |  | M | cmd/juju/authorisedkeys_add.go | View | 1 2 3 4 5 6 7 8 9 10 | 3 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/authorisedkeys_delete.go | View | 1 2 3 4 5 6 7 8 9 10 | 3 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/authorisedkeys_import.go | View | 1 2 3 4 5 6 7 8 9 10 | 3 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/authorisedkeys_list.go | View | 1 2 3 4 5 6 7 8 9 10 | 3 chunks | +10 lines, -1 line | 0 comments | Download |  | M | cmd/juju/bootstrap.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 3 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/cmd_test.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 2 chunks | +2 lines, -1 line | 0 comments | Download |  | M | cmd/juju/constraints.go | View | 1 2 3 4 5 6 7 8 9 10 | 5 chunks | +11 lines, -2 lines | 0 comments | Download |  | M | cmd/juju/debuglog_test.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +2 lines, -2 lines | 0 comments | Download |  | M | cmd/juju/deploy.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 3 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/destroymachine.go | View | 1 2 3 4 5 6 7 8 9 10 | 3 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/destroyrelation.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/destroyservice.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/destroyunit.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/endpoint.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/environment.go | View | 1 2 3 4 5 6 7 8 9 10 | 5 chunks | +11 lines, -2 lines | 0 comments | Download |  | M | cmd/juju/expose.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/get.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/plugin.go | View | 1 2 3 4 5 6 7 8 9 10 | 3 chunks | +3 lines, -2 lines | 0 comments | Download |  | M | cmd/juju/publish.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/publish_test.go | View | 1 2 3 4 5 6 7 8 9 10 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | A | cmd/juju/removeuser.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 1 chunk | +55 lines, -0 lines | 0 comments | Download |  | A | cmd/juju/removeuser_test.go | View | 1 2 3 4 5 6 7 8 9 10 | 1 chunk | +25 lines, -0 lines | 0 comments | Download |  | M | cmd/juju/resolved.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/run.go | View | 1 2 3 4 5 6 7 8 9 10 | 4 chunks | +8 lines, -2 lines | 0 comments | Download |  | M | cmd/juju/set.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/ssh.go | View | 1 2 3 4 5 6 7 8 9 10 | 3 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/status.go | View | 1 2 3 4 5 6 7 8 9 10 | 3 chunks | +3 lines, -2 lines | 0 comments | Download |  | M | cmd/juju/switch.go | View | 1 2 3 4 5 6 7 8 9 10 | 3 chunks | +3 lines, -2 lines | 0 comments | Download |  | M | cmd/juju/switch_test.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +2 lines, -2 lines | 0 comments | Download |  | M | cmd/juju/synctools.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 3 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/unexpose.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/unset.go | View | 1 2 3 4 5 6 7 8 9 10 | 3 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/upgradecharm.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 3 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/juju/upgradejuju.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 3 chunks | +6 lines, -1 line | 0 comments | Download |  | M | cmd/jujud/run.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 2 chunks | +2 lines, -1 line | 0 comments | Download |  | M | cmd/jujud/run_test.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 4 chunks | +4 lines, -3 lines | 0 comments | Download |  | M | cmd/package_test.go | View | 1 2 3 4 5 6 7 8 9 10 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | cmd/plugins/juju-metadata/imagemetadata.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 2 chunks | +2 lines, -1 line | 0 comments | Download |  | M | cmd/plugins/juju-metadata/toolsmetadata.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 2 chunks | +2 lines, -1 line | 0 comments | Download |  | M | cmd/plugins/juju-metadata/validateimagemetadata.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 2 chunks | +2 lines, -1 line | 0 comments | Download |  | M | cmd/plugins/juju-metadata/validatetoolsmetadata.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 2 chunks | +2 lines, -1 line | 0 comments | Download |  | M | cmd/plugins/juju-restore/restore.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 2 chunks | +2 lines, -1 line | 0 comments | Download |  | M | cmd/supercommand.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 2 chunks | +2 lines, -1 line | 0 comments | Download |  | M | errors/errors.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 2 chunks | +20 lines, -0 lines | 0 comments | Download |  | M | juju/api.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 2 chunks | +9 lines, -0 lines | 0 comments | Download |  | M | juju/osenv/vars_windows_test.go | View | 1 2 3 4 5 6 7 8 9 10 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | state/api/params/params.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 1 chunk | +6 lines, -0 lines | 0 comments | Download |  | M | state/apiserver/client/api_test.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | state/user.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 1 chunk | +3 lines, -0 lines | 0 comments | Download |  | M | state/user_test.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 7 chunks | +11 lines, -6 lines | 0 comments | Download |  | M | testing/environ.go | View | 1 2 3 4 5 6 7 8 9 10 | 1 chunk | +6 lines, -0 lines | 0 comments | Download |  | M | utils/ssh/ssh.go | View | 1 2 3 4 5 6 7 8 9 10 11 12 | 2 chunks | +2 lines, -2 lines | 0 comments | Download |  | M | utils/ssh/ssh_test.go | View | 1 2 3 4 5 6 7 8 9 10 | 2 chunks | +2 lines, -2 lines | 0 comments | Download | Total messages: 4 |