Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
044d162a
Unverified
Commit
044d162a
authored
Jan 22, 2025
by
Antoine Kaufmann
Browse files
symphony/cli: add --generate-token option to guest command
parent
729773e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
symphony/cli/simbricks/cli/commands/org.py
symphony/cli/simbricks/cli/commands/org.py
+9
-1
No files found.
symphony/cli/simbricks/cli/commands/org.py
View file @
044d162a
...
...
@@ -36,9 +36,17 @@ async def invite(email: str, first_name: str, last_name: str):
@
app
.
command
()
@
async_cli
()
async
def
guest
(
email
:
str
,
first_name
:
str
,
last_name
:
str
):
async
def
guest
(
email
:
str
,
first_name
:
str
,
last_name
:
str
,
generate_token
:
Annotated
[
str
,
Option
(
help
=
'File name to store an auth token into, if specified.'
,
show_default
=
False
)]
=
''
):
"""Create a new guest user."""
await
client_provider
.
org_client
.
create_guest
(
organization
,
email
,
first_name
,
last_name
)
if
generate_token
:
tok
=
await
client_provider
.
org_client
.
guest_token
(
organization
,
email
)
tok
.
store_token
(
generate_token
)
@
app
.
command
()
@
async_cli
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment