Beispiel #1
0
def complete_chdir(line: str, text: str) -> List[str]:
    return list(filter(os.path.isdir, complete_local_path(text)))
Beispiel #2
0
def complete_set_log(line, text):
    return complete_local_path(text)
Beispiel #3
0
def complete_set_log(line: str, text: str) -> List[str]:
    return complete_local_path(text)
Beispiel #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)]
Beispiel #5
0
def complete_upload(line, text):
    return complete_local_path(text)
Beispiel #6
0
def complete_chdir(line, text):
    return filter(os.path.isdir, complete_local_path(text))
Beispiel #7
0
def complete_chdir(line, text):
    return filter(os.path.isdir, complete_local_path(text))
Beispiel #8
0
def complete_set_log(line, text):
    return complete_local_path(text)
Beispiel #9
0
def complete_upload(line, text):
    return complete_local_path(text)
Beispiel #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)]