helper-cli 0.1.16__py3-none-any.whl → 0.1.21__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
helper/__init__.py ADDED
@@ -0,0 +1,7 @@
1
+ from importlib.metadata import version, PackageNotFoundError
2
+
3
+ try:
4
+ __version__ = version("helper-cli")
5
+ except PackageNotFoundError:
6
+ # If running in development mode without installation
7
+ __version__ = "dev"
helper/commands/arch.py CHANGED
@@ -1,8 +1,14 @@
1
- from ..utils import run_cmd
2
1
  import click
2
+ from helper import __version__
3
+ from helper.utils import run_cmd
4
+
3
5
 
4
6
  @click.command()
5
7
  def arch():
6
- """Show CPU architecture"""
8
+ """Show CPU architecture information.
9
+
10
+ Version: {}
11
+ Displays the machine hardware name (equivalent to 'uname -m').
12
+ """.format(__version__)
7
13
  cmd = "uname -m"
8
14
  run_cmd(cmd)