make output from cli commands easier to read

This commit is contained in:
Johan Lundberg 2026-02-20 15:03:45 +01:00
parent dc84881c87
commit a5198148a3
No known key found for this signature in database
GPG key ID: A6C152738D03C7D1

View file

@ -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)