import pycurl
import os
import textwrap
+import pkg_resources
def wrap_text(text, width):
@click.argument('name')
@click.argument('uri')
@click.option('--type',
- type=click.Choice(['chart', 'bundle']),
+ type=click.Choice(['helm-chart', 'juju-bundle']),
prompt=True,
- help='type of repo (chart for helm-charts, bundle for juju-bundles)')
+ help='type of repo for helm-chart or juju-bundle')
@click.option('--description',
default='',
help='human readable description')
@click.argument('name')
@click.option('--newname', help='New name for the repo')
@click.option('--uri', help='URI of the repo')
-@click.option('--type', type=click.Choice(['chart', 'bundle']),
- help='type of repo (chart for helm-charts, bundle for juju-bundles)')
+@click.option('--type', type=click.Choice(['helm-chart', 'juju-bundle']),
+ help='type of repo for helm-chart or juju-bundle')
@click.option('--description', help='human readable description')
#@click.option('--wait',
# is_flag=True,
def get_version(ctx):
try:
check_client_version(ctx.obj, "version")
- print (ctx.obj.get_version())
+ print ("Server version: {}".format(ctx.obj.get_version()))
+ print ("Client version: {}".format(pkg_resources.get_distribution("osmclient").version))
except ClientException as e:
print(str(e))
exit(1)