pub fn detect(
exe: &Path,
home: Option<&Path>,
brew_prefix: Option<&Path>,
requested: Option<Channel>,
) -> InstallMethodExpand description
Work out how exe was installed.
Pure over its inputs - the resolved executable path, the home directory, the
answer brew --prefix gave (if it was asked and answered), and the channel
the user named - so every arm is testable without a Homebrew, a Scoop or a
second machine.