Skip to content

Commit

Permalink
added option to print tool version & readme updated & version 0.1.2 r…
Browse files Browse the repository at this point in the history
…eleased
  • Loading branch information
Aviksaikat committed May 7, 2024
1 parent 85c1124 commit ba306c2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Commands:
start Start routing
status See status
stop Stop routing
version Show Version
```

## Demo
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Commands:
start Start routing
status See status
stop Stop routing
version Show Version
```

## Demo
Expand Down
2 changes: 1 addition & 1 deletion src/nipe_py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

__all__ = ["Device", "Install", "Status", "Restart", "Start", "Stop"]

__version__ = "0.1.1"
__version__ = "0.1.2"
7 changes: 7 additions & 0 deletions src/nipe_py/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from nipe_py import Status, Install
from rich import print
from rich.panel import Panel
from nipe_py import __version__


@click.group()
Expand Down Expand Up @@ -46,5 +47,11 @@ def status():
Status()


@cli.command()
def version():
"""Show Version"""
print(Panel(f"[green]Version: [yellow]{__version__}"))


if __name__ == "__main__":
cli()

0 comments on commit ba306c2

Please sign in to comment.