|
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 struct includes a function for ensuring the envname is not "".
This replaces a review at https://codereview.appspot.com/51450047/
https://code.launchpad.net/~mattyw/juju-core/user-add-remove-cli/+merge/210962
(do not edit description out of merge proposal)
Total comments: 25
Total comments: 13
Total comments: 7
Total comments: 8
Total comments: 19
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+648 lines, -128 lines) |
Patch |
 |
A |
[revision details]
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/cmd.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
cmd/envcmd/environmentcommand.go
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+15 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cmd/envcmd/environmentcommand_test.go
|
View
|
|
2 chunks |
+21 lines, -18 lines |
0 comments
|
Download
|
 |
M |
cmd/envcmd/export_test.go
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/addmachine.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/addrelation.go
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/addunit.go
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
A |
cmd/juju/adduser.go
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+103 lines, -0 lines |
0 comments
|
Download
|
 |
A |
cmd/juju/adduser_test.go
|
View
|
1
2
3
4
5
|
1 chunk |
+106 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/authorisedkeys_add.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/authorisedkeys_delete.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/authorisedkeys_import.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/authorisedkeys_list.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/bootstrap.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/bootstrap_test.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/cmd_test.go
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/constraints.go
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/debuglog_test.go
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/deploy.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/destroymachine.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/destroyrelation.go
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/destroyservice.go
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/destroyunit.go
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/endpoint.go
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/ensureavailability.go
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/environment.go
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+16 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/expose.go
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/get.go
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/plugin.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/publish.go
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/publish_test.go
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
A |
cmd/juju/removeuser.go
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+55 lines, -0 lines |
0 comments
|
Download
|
 |
A |
cmd/juju/removeuser_test.go
|
View
|
1
2
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/resolved.go
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/retryprovisioning.go
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/run.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/run_test.go
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/set.go
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/ssh.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/status.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/switch.go
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/switch_test.go
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/synctools.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/unexpose.go
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/unset.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/upgradecharm.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/upgradejuju.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/jujud/run_test.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cmd/plugins/juju-metadata/imagemetadata.go
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/plugins/juju-metadata/toolsmetadata.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/plugins/juju-metadata/validateimagemetadata.go
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cmd/plugins/juju-metadata/validatetoolsmetadata.go
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cmd/plugins/juju-restore/restore.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/supercommand.go
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
environs/configstore/disk.go
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+23 lines, -18 lines |
0 comments
|
Download
|
 |
M |
environs/configstore/mem.go
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
environs/manual/init_test.go
|
View
|
1
2
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
environs/manual/provisioner_test.go
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
juju/api.go
|
View
|
1
2
3
4
5
6
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/api/params/params.go
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/client/api_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
state/user_test.go
|
View
|
1
2
|
6 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
testing/environ.go
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
Total messages: 20
|