diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-06-11 13:04:56 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-06-11 13:04:56 +0200 |
commit | 914e7d250ff82aefcdbda5140a500bc872040e92 (patch) | |
tree | 25afd61a63dc56d26ecfb28fd79a55c909d727e7 /pkgs/by-name/ts/tskm/src/cli.rs | |
parent | pkgs/tskm/open/review: All reviewing all non-empty projects (diff) | |
download | nixos-config-914e7d250ff82aefcdbda5140a500bc872040e92.zip |
pkgs/tskm/open/list-tabs: All listing based on empty/non-empty and more than one project
Diffstat (limited to '')
-rw-r--r-- | pkgs/by-name/ts/tskm/src/cli.rs | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/pkgs/by-name/ts/tskm/src/cli.rs b/pkgs/by-name/ts/tskm/src/cli.rs index 1fd338fb..ac5f472b 100644 --- a/pkgs/by-name/ts/tskm/src/cli.rs +++ b/pkgs/by-name/ts/tskm/src/cli.rs @@ -141,12 +141,25 @@ pub enum OpenCommand { /// List all open tabs in the project. ListTabs { - /// The project to open. + /// The projects to open. #[arg(value_parser = task::Project::from_project_string, add = ArgValueCompleter::new(complete_project))] - project: Option<task::Project>, + projects: Option<Vec<task::Project>>, + + /// Only show the tabs, that are in this mode + #[arg(short, long, conflicts_with = "projects")] + mode: Option<ListMode>, }, } +#[derive(Clone, Copy, ValueEnum, Debug)] +pub enum ListMode { + // The tab contains no tabs. + Empty, + + // The tab contains tabs. + NonEmpty, +} + #[derive(Subcommand, Debug)] pub enum InputCommand { /// Add URLs as inputs to be categorized. |