Files
ahab/src/cli/link.rs

32 lines
770 B
Rust

use std::path::PathBuf;
use clap::Subcommand;
#[derive(Subcommand, Debug)]
pub enum Link {
/// Move untracked paths into the store and symlink them back
Add {
/// Untracked or ignored paths inside the repository
#[arg(required = true)]
paths: Vec<PathBuf>,
/// Link to a store path that already exists
#[arg(long)]
force: bool,
},
/// List untracked paths a sandbox would still see
Check {
/// Limit the listing to these paths
paths: Vec<PathBuf>,
/// Print `<code> <path>` for scripts, as `git status --porcelain` does
#[arg(long)]
porcelain: bool,
/// Terminate porcelain entries with NUL
#[arg(short = 'z')]
null: bool,
},
}