Skip to content

Commit 5dc07d4

Browse files
committed
Add version command
1 parent 1ac4230 commit 5dc07d4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/commands/version.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import click
2+
3+
from app.utils.click_utils import info
4+
from app.version import __version__
5+
6+
7+
@click.command()
8+
@click.pass_context
9+
def version(_: click.Context) -> None:
10+
info(f"Git-Mastery CLI is currently {__version__}")

0 commit comments

Comments
 (0)