def cli(ctx, config, access_token):
# type: (click.Context, str, str) -> None
"""BOCCO API http://api-docs.bocco.me/ ? CLI ????????"""
debug = False
downloads = None
if config:
with open(config, 'r') as f:
config_json = json.load(f)
debug = config_json['debug']
downloads = config_json['downloads']
access_token = config_json['access_token']
ctx.obj['api'] = Client(access_token)
ctx.obj['debug'] = debug
ctx.obj['downloads'] = downloads
评论列表
文章目录