示例#1
0
文件: main.py 项目: yileye/atomicapp
def cli_index(args):
    argdict = args.__dict__
    i = Index()
    if argdict["index_action"] == "list":
        i.list()
    elif argdict["index_action"] == "update":
        i.update()
    elif argdict["index_action"] == "generate":
        i.generate(argdict["location"])
    sys.exit(0)
示例#2
0
 def test_list(self):
     a = Index()
     a.list()
示例#3
0
 def test_list(self):
     a = Index()
     a.list()