コード例 #1
0
ファイル: control_commands.py プロジェクト: uuudoc111/polysh
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
ファイル: control_commands.py プロジェクト: uuudoc111/polysh
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)]