Add version
cmd
This commit is contained in:
parent
3fa5dbfab0
commit
8d0031e2ee
|
@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue