示例#1
0
def complete_chdir(line: str, text: str) -> List[str]:
    return list(filter(os.path.isdir, complete_local_path(text)))
示例#2
0
def complete_set_log(line, text):
    return complete_local_path(text)
示例#3
0
def complete_set_log(line: str, text: str) -> List[str]:
    return complete_local_path(text)
示例#4
0
def complete_replicate(line, text):
    if ':' not in text:
        enabled_shells = complete_shells(line, text, lambda i: i.enabled)
        return [c[:-1] + ':' for c in enabled_shells]
    shell, path = text.split(':')
    return [shell + ':' + p for p in complete_local_path(path)]
示例#5
0
def complete_upload(line, text):
    return complete_local_path(text)
示例#6
0
def complete_chdir(line, text):
    return filter(os.path.isdir, complete_local_path(text))
示例#7
0
def complete_chdir(line, text):
    return filter(os.path.isdir, complete_local_path(text))
示例#8
0
def complete_set_log(line, text):
    return complete_local_path(text)
示例#9
0
def complete_upload(line, text):
    return complete_local_path(text)
示例#10
0
def complete_replicate(line, text):
    if ':' not in text:
        enabled_shells =  complete_shells(line, text, lambda i: i.enabled)
        return [c[:-1] + ':' for c in enabled_shells]
    shell, path = text.split(':')
    return [shell + ':' + p for p in complete_local_path(path)]