Skip to content

Commit

Permalink
Merge pull request #134 from galaxyproject/132-user-create
Browse files Browse the repository at this point in the history
Output JSON from user create command
  • Loading branch information
ksuderman authored Oct 7, 2022
2 parents fe7fc80 + 3d414fc commit 914d11d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion abm/lib/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,10 @@ def create(context: Context, args:list):
user_record = gi.users.create_local_user(name, email, password)
id = user_record['id']
key = gi.users.create_user_apikey(id)
print(f"Created user {name} with API key {key}")
result = {
'name': name,
'email': email,
'id': id,
'key': key
}
print(json.dumps(result, indent=4))

0 comments on commit 914d11d

Please sign in to comment.