pub fn command_line_contains_path(
command_line: &str,
path: impl AsRef<Path>,
options: CommandLinePathMatchOptions,
) -> Result<bool, PathError>Expand description
Returns true if command_line appears to reference path.
This is a heuristic matcher for tooling, not a full shell parser. It does not invoke a shell or execute command-line content.
§Filesystem access
No (identity-key path uses lexical options only).
§Behavior
- Rejects empty target paths.
- Tokenizes the command line (optional quotes).
- Matches full path, separator-normalized form, and optional identity key.
- Optionally matches basename (document as fuzzy when enabled).
- Avoids pure substring matches when
require_component_boundaryis true.