Function broot::shell_install::write_state
source · [−]pub fn write_state(state: ShellInstallState) -> Result<(), ProgramError>
Expand description
write either the “installed” or the “refused” file, or remove those files.
This is useful in installation or test scripts when we don’t want the user to be prompted to install the function, or in case something doesn’t properly work in shell detections