upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/sub_commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/sub_commands')
-rw-r--r--src/sub_commands/list.rs10
-rw-r--r--src/sub_commands/send.rs2
2 files changed, 2 insertions, 10 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)]
23pub 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)]
30pub async fn launch(_cli_args: &Cli, _args: &SubCommandArgs) -> Result<()> { 22pub 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
diff --git a/src/sub_commands/send.rs b/src/sub_commands/send.rs
index 81cecd8..35c2c81 100644
--- a/src/sub_commands/send.rs
+++ b/src/sub_commands/send.rs
@@ -518,7 +518,7 @@ pub static PATCH_KIND: u64 = 1617;
518pub fn generate_cover_letter_and_patch_events( 518pub fn generate_cover_letter_and_patch_events(
519 cover_letter_title_description: Option<(String, String)>, 519 cover_letter_title_description: Option<(String, String)>,
520 git_repo: &Repo, 520 git_repo: &Repo,
521 commits: &Vec<Sha1Hash>, 521 commits: &[Sha1Hash],
522 keys: &nostr::Keys, 522 keys: &nostr::Keys,
523 repo_ref: &RepoRef, 523 repo_ref: &RepoRef,
524 in_reply_to: &Option<String>, 524 in_reply_to: &Option<String>,