Skip to content

Commit

Permalink
Add emojis to help menu
Browse files Browse the repository at this point in the history
  • Loading branch information
elkinaguas committed Oct 17, 2023
1 parent 4a82aad commit ede295a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clir/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def cli():

#--------------------------------------- CLI commands -------------------------------------------------------

@cli.command(help="Clir initial configuration")
@cli.command(help="Clir initial configuration 🚀")
def init():
dir_path = os.path.join(os.path.expanduser('~'), '.clir')
os.makedirs(dir_path, exist_ok=True)
Expand All @@ -27,15 +27,15 @@ def init():
else:
print(f'A clir environment already exists in "{dir_path}".')

@cli.command(help="Save new command")
@cli.command(help="Save new command 💾")
def new():
command = Prompt.ask("Command")
description = Prompt.ask("Description")
tag = Prompt.ask("Tag")

functions.save_commands(command = command, desc = description, tag = tag)

@cli.command(help="Remove command")
@cli.command(help="Remove command 👋")
@click.option('-t', '--tag', help="Search by tag")
@click.option('-g', '--grep', help="Search by grep")
def rm(tag: str = "", grep: str = ""):
Expand All @@ -46,7 +46,7 @@ def rm(tag: str = "", grep: str = ""):
uid = functions.choose_command(commands=commands)
functions.remove_command(uid = uid)

@cli.command(help="List commands")
@cli.command(help="List commands 📃")
@click.option('-t', '--tag', help="Search by tag")
@click.option('-g', '--grep', help="Search by grep")
def ls(tag: str = "", grep: str = ""):
Expand All @@ -56,7 +56,7 @@ def ls(tag: str = "", grep: str = ""):
commands = functions.get_commands()
functions.command_table(commands=commands)

@cli.command(help="Run command")
@cli.command(help="Run command")
@click.option('-t', '--tag', help="Search by tag")
@click.option('-g', '--grep', help="Search by grep")
def run(tag: str = "", grep: str = ""):
Expand Down

0 comments on commit ede295a

Please sign in to comment.