Skip to main content

owning_command

Function owning_command 

Source
pub fn owning_command(path: &Path) -> Option<&'static str>
Expand description

The subcommand that does analyze path, if any.

One table, consulted from both directions. Each command previously hardcoded a pointer at the other - check asked is_markdown, lint-docs asked languages::detect - which is two definitions of one question and an edit in every existing command each time a file class is added.