Пример #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)