Skip to content

Commit

Permalink
Show all tiers if user doesn't specify one for message-schema command
Browse files Browse the repository at this point in the history
  • Loading branch information
justinvasel committed Nov 19, 2024
1 parent 5e5bdd9 commit cec5024
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion snews_pt/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ def message_schema(ctx, requested_tier):
valid_tiers = [
m.replace("Message", "") for m in messages.__all__ if m.endswith("Message")
]

if len(requested_tier) == 0:
requested_tier = ["all"]

get_all_tiers = requested_tier[0] == "all"
tiers = (
valid_tiers
Expand All @@ -196,7 +200,7 @@ def message_schema(ctx, requested_tier):
click.secho(f"{f:<20s} : (REQUIRED USER INPUT)", fg="bright_blue")
else:
click.secho(f"{f:<20s} : (USER INPUT)", fg="bright_cyan")
click.secho(f'{"**kwargs":<20s} : (GROUPED AS META)', fg="bright_green")
click.secho(f'{"**kwargs":<20s} : (GROUPED AS META)\n', fg="bright_green")


@main.command()
Expand Down

0 comments on commit cec5024

Please sign in to comment.