make output from cli commands easier to read
This commit is contained in:
parent
dc84881c87
commit
a5198148a3
1 changed files with 4 additions and 0 deletions
|
|
@ -55,6 +55,8 @@ def create_invite(
|
||||||
settings = Settings()
|
settings = Settings()
|
||||||
effective_ttl = ttl if ttl is not None else settings.invite_ttl
|
effective_ttl = ttl if ttl is not None else settings.invite_ttl
|
||||||
url = asyncio.run(_create_invite(settings, username, effective_ttl, note))
|
url = asyncio.run(_create_invite(settings, username, effective_ttl, note))
|
||||||
|
typer.echo("")
|
||||||
|
typer.echo("Share this link to let the user setup their account:")
|
||||||
typer.echo(url)
|
typer.echo(url)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -67,6 +69,8 @@ def initial_admin(
|
||||||
settings = Settings()
|
settings = Settings()
|
||||||
groups = group if group is not None else ["admin", "users"]
|
groups = group if group is not None else ["admin", "users"]
|
||||||
url = asyncio.run(_initial_admin(settings, username, groups))
|
url = asyncio.run(_initial_admin(settings, username, groups))
|
||||||
|
typer.echo("")
|
||||||
|
typer.echo("Follow this invite link to create your first admin user:")
|
||||||
typer.echo(url)
|
typer.echo(url)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue