mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 22:56:15 +01:00
Merge pull request #1105 from lethliel/add_version_command
add version command to print the used version
This commit is contained in:
commit
d7ee98833c
@ -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