Skip to content

Commit

Permalink
Add tags command to CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
elkinaguas committed Nov 22, 2023
1 parent d01c858 commit a917467
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clir/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,9 @@ def run(tag: str = "", grep: str = ""):
def cp(tag: str = "", grep: str = ""):
table = CommandTable(tag=tag, grep=grep)
table.copy_command()

@cli.command(help="Show tags 🏷️")
@click.option('-g', '--grep', help="Search by grep")
def tags(grep: str = ""):
table = CommandTable(grep=grep)
table.show_tags()

0 comments on commit a917467

Please sign in to comment.