1
0
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:
Daniel Mach 2022-08-22 09:16:47 +02:00 committed by GitHub
commit d7ee98833c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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