diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/config.rs b/src/config.rs index f8160af..df31de4 100644 --- a/src/config.rs +++ b/src/config.rs @@ -12,18 +12,19 @@ pub struct Config { #[command(flatten)] pub parsers: Projects, - /// Add arbitrary directories - /// - /// Directories added by this flag are still filtered and sorted based on supplied options. - #[arg(short = 'P', long = "project")] - pub projects: Vec<PathBuf>, - /// Add any current tmux session's paths to output. /// /// Uses the tmux session's `session_path`. #[arg(short = 'T', long = "sessions")] pub tmux_sessions: bool, + /// Include arbitrary directories in output + /// + /// Note: Directories added by this flag are still filtered and sorted based on supplied + /// options. + #[arg(short = 'P', long = "project")] + pub include: Vec<PathBuf>, + #[command(flatten)] pub verbosity: Verbosity, } @@ -51,6 +52,10 @@ pub struct Search { #[derive(Debug, Default, Clone, Args)] pub struct Projects { + /// Exclude matching sessions from output + #[arg(short, long = "exclude")] + pub excludes: Vec<PathBuf>, + /// Match all child directories. /// /// Uses the directory mtime as the timestamp. |