quickie.completion.PathCompleter
- class quickie.completion.PathCompleter(wd: str | Path | None = None)
For auto-completing file paths.
- __init__(wd: str | Path | None = None)
Initialize the completer.
- Parameters:
wd – The working directory to resolve paths relative to. Follows the same resolution rules as task working directories:
Noneusesapp.context.wd,"."uses the tasks module parent directory,"./path"is resolved relative to the tasks module parent directory, other relative paths are joined withapp.context.wd, and absolute paths are used as-is.
Methods
__init__([wd])Initialize the completer.
complete(*, prefix, action, parser, parsed_args)Complete the prefix.
get_pre_filtered_paths(target_dir)Get path names in the target directory.
get_wd()Get the resolved working directory.