Skip to main content

unlink_managed_command

Function unlink_managed_command 

Source
pub async fn unlink_managed_command(
    bin_dir: &Path,
    command: &OsStr,
    managed_roots: &[PathBuf],
    dry_run: bool,
) -> Result<UnlinkReport>
Expand description

Remove one command entry only when it is owned by Shine and points below one of managed_roots. This is the command-scoped counterpart to unlink_managed; foreign files and links are reported as skipped.