Merge pull request #1 from d0p1s4m4/main

Add `version` cmd
This commit is contained in:
Sleepy Monax 2022-07-27 07:42:12 +02:00 committed by GitHub
commit d1539a3341
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -9,6 +9,8 @@ import osdk.targets as targets
import osdk.manifests as manifests
__version__="0.2.1"
CMDS = {}
@ -126,6 +128,10 @@ def helpCmd(opts: dict, args: list[str]) -> None:
print("")
def versionCmd(opts: dict, args: list[str]) -> None:
print("OSDK v" + __version__)
CMDS = {
"run": {
"func": runCmd,
@ -151,6 +157,10 @@ CMDS = {
"func": helpCmd,
"desc": "Show this help message",
},
"version": {
"func": versionCmd,
"desc": "Show current version",
},
}

View file

@ -1,8 +1,9 @@
from setuptools import setup
from osdk import __version__
setup(
name="osdk",
version="0.2.0",
version=__version__,
python_requires='>=3.10',
description="Operating System Development Kit",
author="The DEVSE Community",