1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-03 18:16:17 +01:00

add version command to print the used version

This commit is contained in:
lethliel 2022-08-17 22:21:02 +02:00
parent f86fb66521
commit 4b2bfb0b80

View File

@ -165,6 +165,17 @@ class Osc(cmdln.Cmdln):
else:
return conf.config['apiurl']
def do_version(self, subcmd, opts):
"""
Give version of osc binary
usage:
osc version
"""
print(get_osc_version())
def do_init(self, subcmd, opts, project, package=None, scm_url=None):
"""
Initialize a directory as working copy