Skip to main content

extract_command

Function extract_command 

Source
pub fn extract_command(script: &str) -> Option<(String, Range<usize>)>
Expand description

The model’s command inside the CLI’s script, and where its quoted form sits in the script: the shell word after the CLI’s eval , which the CLI quotes with single quotes (an embedded ' becomes '"'"'). None when the script doesn’t have one, e.g. after a change to the CLI’s format.