pub fn command_segments(line: &str) -> Vec<String>Expand description
The commands a shell line runs: split on &&, ||, ;, | and new
lines outside quotes, each with leading NAME=value assignments and
the prefixes sudo, env, time, nohup and exec taken off. A
rule anchored at a command’s start then sees cd x && git push and
FOO=1 git push as the push they run, and quoted text is not split, so
a commit message naming a command is not that command.