agentignore 0.1.0

FUSE filesystem that hides files matching .agentignore rules from processes - control what agents can see while building apps
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! `agentignore unmount` — Unmount an AgentIgnore mountpoint.

use std::path::PathBuf;

/// Handle `agentignore unmount <mountpoint>`.
pub fn unmount(mountpoint: PathBuf) {
    let status = std::process::Command::new("fusermount")
        .args(["-u", mountpoint.to_str().unwrap()])
        .status()
        .expect("fusermount not found");
    if !status.success() {
        eprintln!("fusermount failed");
        std::process::exit(1);
    }
}