Expand description
Tab completion: context parsing (command vs path), command and path candidates. Rustyline Helper (Completer, Hinter, Highlighter, Validator) for command and path completion.
Structs§
- Completion
Context - 从 (line, pos) 解析出的补全上下文:当前词的前缀,以及是命令还是路径
- DevShell
Helper - Helper for rustyline: command and path tab-completion using shared
VfsandSessionHolder. - NoHint
- Dummy hint type for Hinter; we never return a hint (
hint()returns None).
Enums§
- Completion
Kind - 当前输入位置是命令名、路径,或不需要补全(用于选择补全源)
Functions§
- complete_
commands - Command completion: case-insensitive prefix match. Returns matching command names.
- complete_
path - Path completion: prefix may contain slashes; only the basename segment is matched.
- completion_
context - Parse completion context at (line, pos). Returns None if line empty or pos out of bounds.
- list_
dir_ names_ for_ completion - List directory entry names for path tab completion: Mode P (γ or β) uses
GuestFsOpswhen guest-primary is active; otherwiseVfs::list_dir.