Skip to content

Commit f2c5a4f

Browse files
committed
alrightyg
1 parent a890ebd commit f2c5a4f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

usps/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.5.5"
1+
__version__ = "0.6.0"

usps/__main__.py

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from usps.storage import packages
1111
from usps.tracking import Package
1212

13+
from . import __version__
1314
from .utils import get_delta
1415

1516
# Initialization
@@ -116,3 +117,8 @@ def command_name(
116117
con.print(f"[green]✓ USPS {tracking_number} updated with name [cyan]'{name}'[/].[/]")
117118

118119
packages.save(original_packages | {tracking_number: name})
120+
121+
@app.command("version")
122+
def command_version() -> None:
123+
"""Show the package version."""
124+
con.print(f"[cyan]USPS-cli v{__version__} by iiPython[/]\n -> [yellow]https://github.com/iiPythonx/usps")

0 commit comments

Comments
 (0)