use anyhow::Result;
use std::{io::Write, path::PathBuf};
pub use crate::opts::MountBackend;
#[derive(Debug, Clone)]
#[allow(dead_code)]
pub struct MountArgs {
pub id_or_path: String,
pub mountpoint: PathBuf,
pub auto_unmount: bool,
pub allow_root: bool,
pub allow_other: bool,
pub foreground: bool,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub backend: MountBackend,
}
pub fn list_mounts<W: Write>(out: &mut W) {
let _ = writeln!(out, "Mount listing is only available on Unix.");
}
pub fn mount(_args: MountArgs) -> Result<()> {
anyhow::bail!("Mounting is only available on Unix (Linux or macOS)")
}
pub fn prune_mounts(_force: bool) -> Result<()> {
anyhow::bail!("Mount pruning is only available on Unix")
}