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:
parent
f86fb66521
commit
4b2bfb0b80
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user