Exemple #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)
Exemple #2
0
def commands(pif):
    useful.cmd_proc(pif, './cmackl.py', cmds)
Exemple #3
0
def commands(pif):
    useful.cmd_proc(pif, './prints.py', cmds)
Exemple #4
0
def commands(pif):
    useful.cmd_proc(pif, './editor.py', cmds)
Exemple #5
0
def commands(pif):
    useful.cmd_proc(pif, './tlinks.py', cmds)
Exemple #6
0
def commands(pif):
    useful.cmd_proc(pif, './dcheck.py', cmds)
Exemple #7
0
def commands(pif):
    useful.cmd_proc(pif, './cmackl.py', cmds)
Exemple #8
0
def commands(pif):
    useful.cmd_proc(pif, './lineup.py', cmds)
Exemple #9
0
def commands(pif):
    useful.cmd_proc(pif, './busers.py', cmds)
Exemple #10
0
def commands(pif):
    useful.cmd_proc(pif, './filsys.py', cmds)
Exemple #11
0
def commands(pif):
    useful.cmd_proc(pif, './busers.py', cmds)
Exemple #12
0
def commands(pif):
    useful.cmd_proc(pif, './vmakes.py', cmds)
Exemple #13
0
def commands(pif):
    useful.cmd_proc(pif, './vmakes.py', cmds)
Exemple #14
0
def commands(pif):
    useful.cmd_proc(pif, './editor.py', cmds)
Exemple #15
0
def commands(pif):
    useful.cmd_proc(pif, './tlinks.py', cmds)
Exemple #16
0
def commands(pif):
    useful.cmd_proc(pif, './filsys.py', cmds)
Exemple #17
0
def commands(pif):
    useful.cmd_proc(pif, './images.py', cmds)
Exemple #18
0
def commands(pif):
    useful.cmd_proc(pif, './prints.py', cmds)
Exemple #19
0
def commands(pif):
    useful.cmd_proc(pif, './dcheck.py', cmds)