Skip to content

Commit

Permalink
better command ordering in help
Browse files Browse the repository at this point in the history
  • Loading branch information
moiSentineL committed Jul 24, 2024
1 parent a8f6c2c commit c2074bf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion flomo/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@
# TODO: Ability for users to see message.log file.
# TODO: Change Config data from a Command

class OrderCommands(click.Group):
def list_commands(self, ctx: click.Context) -> list[str]:
return list(self.commands)

@click.group(cls=click_aliases.ClickAliasedGroup)

class MultiGroup(click_aliases.ClickAliasedGroup, OrderCommands):
pass

@click.group(cls=MultiGroup)
def flomo():
"""
A Flowmodoro CLI for productivity enthusiasts.
Expand Down

0 comments on commit c2074bf

Please sign in to comment.