diff options
Diffstat (limited to 'src/sub_commands/list.rs')
| -rw-r--r-- | src/sub_commands/list.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/sub_commands/list.rs b/src/sub_commands/list.rs index 102c3bd..2d81164 100644 --- a/src/sub_commands/list.rs +++ b/src/sub_commands/list.rs | |||
| @@ -16,18 +16,10 @@ use crate::{ | |||
| 16 | commit_msg_from_patch_oneliner, event_is_cover_letter, event_is_revision_root, | 16 | commit_msg_from_patch_oneliner, event_is_cover_letter, event_is_revision_root, |
| 17 | event_to_cover_letter, patch_supports_commit_ids, PATCH_KIND, | 17 | event_to_cover_letter, patch_supports_commit_ids, PATCH_KIND, |
| 18 | }, | 18 | }, |
| 19 | Cli, | ||
| 20 | }; | 19 | }; |
| 21 | 20 | ||
| 22 | #[derive(Debug, clap::Args)] | ||
| 23 | pub struct SubCommandArgs { | ||
| 24 | /// TODO ignore merged, and closed | ||
| 25 | #[arg(long, action)] | ||
| 26 | open_only: bool, | ||
| 27 | } | ||
| 28 | |||
| 29 | #[allow(clippy::too_many_lines)] | 21 | #[allow(clippy::too_many_lines)] |
| 30 | pub async fn launch(_cli_args: &Cli, _args: &SubCommandArgs) -> Result<()> { | 22 | pub async fn launch() -> Result<()> { |
| 31 | let git_repo = Repo::discover().context("cannot find a git repository")?; | 23 | let git_repo = Repo::discover().context("cannot find a git repository")?; |
| 32 | 24 | ||
| 33 | let root_commit = git_repo | 25 | let root_commit = git_repo |