unilab.tools.completion¶
Shell completion helper for UniLab training entrypoints.
Functions
|
|
|
|
|
|
|
Classes
CompletionMetadata(commands: 'tuple[str, ...]', flags: 'dict[str, tuple[str, ...]]', choices: 'dict[str, dict[str, tuple[str, ...]]]', tasks: 'tuple[TaskCompletionEntry, ...]', run_paths: 'tuple[str, ...]' = (), root: 'Path | None' = None) |
|
TaskCompletionEntry(algo: 'str', task: 'str', sim: 'str', owner: 'str') |
- class unilab.tools.completion.TaskCompletionEntry[source]¶
Bases:
objectTaskCompletionEntry(algo: ‘str’, task: ‘str’, sim: ‘str’, owner: ‘str’)
- class unilab.tools.completion.CompletionMetadata[source]¶
Bases:
objectCompletionMetadata(commands: ‘tuple[str, …]’, flags: ‘dict[str, tuple[str, …]]’, choices: ‘dict[str, dict[str, tuple[str, …]]]’, tasks: ‘tuple[TaskCompletionEntry, …]’, run_paths: ‘tuple[str, …]’ = (), root: ‘Path | None’ = None)
- Parameters:
-
tasks:
tuple[TaskCompletionEntry,...]¶
- unilab.tools.completion.build_metadata(root=None)[source]¶
- Parameters:
root (
Path|None)- Return type: