def list(package_name):
# lists all of the packages for a user, or all of the implementations for a package
# <username> / <package> , <implementation>
# detemine if there's a user and package, or just a user
p = split_package_name(package_name)
if p['username'] != None:
# get all of the packages and print their names in a pretty print
if p['package'] != None:
# get all implementations and print their names in a pretty print
if p['implementation'] != None:
print('Cannot list one specific implementation. Use "print".')
return
return
return
print('Error parsing arguments. Got {}. Specify in format such that: <username>/<package> with <package> being optional.'.format(p))
# @cli.command()
# @click.argument('payload')
# def print(payload):
# pass
评论列表
文章目录