main.py 441 字节
Newer Older
1 2 3
import click
import tag_source.vscode
import tag_source.stackoverflow
F
feilong 已提交
4
import tag_source.segmentfault
5 6 7 8 9 10 11 12 13

@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()
F
feilong 已提交
14 15
    elif source=='sf':
        tag_source.segmentfault.fetch()
16 17 18

if __name__ == '__main__':
    fetch()