def complete_chdir(line: str, text: str) -> List[str]: return list(filter(os.path.isdir, complete_local_path(text)))
def complete_set_log(line, text): return complete_local_path(text)
def complete_set_log(line: str, text: str) -> List[str]: return complete_local_path(text)
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)]
def complete_upload(line, text): return complete_local_path(text)
def complete_chdir(line, text): return filter(os.path.isdir, complete_local_path(text))