mirror of
https://github.com/openSUSE/osc.git
synced 2024-09-21 09:46:19 +02: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:
|
else:
|
||||||
return conf.config['apiurl']
|
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):
|
def do_init(self, subcmd, opts, project, package=None, scm_url=None):
|
||||||
"""
|
"""
|
||||||
Initialize a directory as working copy
|
Initialize a directory as working copy
|
||||||
|
Loading…
Reference in New Issue
Block a user