示例#1
0
def process_command_list(page_id='cli',
                         form_key='',
                         defval='',
                         args='',
                         dbedit=None,
                         cmds=[],
                         switches='',
                         options=''):
    pif = None
    try:
        switch, filelist = get_command_line(switches, options)
        pif = get_page_info(page_id, form_key, defval, args, dbedit)
        pif.switch, pif.filelist = switch, filelist
        useful.cmd_proc(pif, './' + os.path.split(sys.argv[0])[1], cmds)
    except SystemExit:
        pass
    except useful.SimpleError as e:
        print('***', e.value)
示例#2
0
def commands(pif):
    useful.cmd_proc(pif, './cmackl.py', cmds)
示例#3
0
def commands(pif):
    useful.cmd_proc(pif, './prints.py', cmds)
示例#4
0
def commands(pif):
    useful.cmd_proc(pif, './editor.py', cmds)
示例#5
0
def commands(pif):
    useful.cmd_proc(pif, './tlinks.py', cmds)
示例#6
0
def commands(pif):
    useful.cmd_proc(pif, './dcheck.py', cmds)
示例#7
0
def commands(pif):
    useful.cmd_proc(pif, './cmackl.py', cmds)
示例#8
0
def commands(pif):
    useful.cmd_proc(pif, './lineup.py', cmds)
示例#9
0
def commands(pif):
    useful.cmd_proc(pif, './busers.py', cmds)
示例#10
0
def commands(pif):
    useful.cmd_proc(pif, './filsys.py', cmds)
示例#11
0
def commands(pif):
    useful.cmd_proc(pif, './busers.py', cmds)
示例#12
0
def commands(pif):
    useful.cmd_proc(pif, './vmakes.py', cmds)
示例#13
0
def commands(pif):
    useful.cmd_proc(pif, './vmakes.py', cmds)
示例#14
0
def commands(pif):
    useful.cmd_proc(pif, './editor.py', cmds)
示例#15
0
def commands(pif):
    useful.cmd_proc(pif, './tlinks.py', cmds)
示例#16
0
def commands(pif):
    useful.cmd_proc(pif, './filsys.py', cmds)
示例#17
0
def commands(pif):
    useful.cmd_proc(pif, './images.py', cmds)
示例#18
0
def commands(pif):
    useful.cmd_proc(pif, './prints.py', cmds)
示例#19
0
def commands(pif):
    useful.cmd_proc(pif, './dcheck.py', cmds)