Skip to content

Commit 735910a

Browse files
committed
Add distribution to version.
1 parent 539286e commit 735910a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎usr/lib/python3/dist-packages/linuxmusterCli/main.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/opt/linuxmuster/bin/python3
22

33
import sys
4+
import distro
45
import typer
56
import subprocess
67
import logging
@@ -103,7 +104,10 @@ def output(
103104

104105
@app.command(help="Lists linuxmuster.net packages installed.")
105106
def version():
106-
packages = Table()
107+
108+
distribution = f"{distro.name()} {distro.version()}"
109+
110+
packages = Table(title=distribution)
107111
packages.add_column("Status", style="green")
108112
packages.add_column("Packages", style="cyan")
109113
packages.add_column("Version", style="bright_magenta")

‎usr/lib/python3/dist-packages/linuxmusterCli/requirements.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
distro
12
dpath==2.0.6 # used for getSophomorixValue
23
python-ldap
34
pyyaml

0 commit comments

Comments
 (0)