Fork自 CSDN 技术社区 / CSDN 统一标签设计
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
import click import tag_source.vscode import tag_source.stackoverflow
import tag_source.segmentfault
@click.command() @click.option('--source') def fetch(source): click.echo('will fetch tags from %s!' % source) if source=='vscode': tag_source.vscode.fetch() elif source=='so': tag_source.stackoverflow.fetch()
elif source=='sf': tag_source.segmentfault.fetch()
if __name__ == '__main__': fetch()