+
Skip to content

Tags: gnostr-org/gnostr

Tags

1920/915495/577614/d388da22da/dd8f1d99ff-test-utils-passing

Toggle 1920/915495/577614/d388da22da/dd8f1d99ff-test-utils-passing's commit message

Verified

This commit was signed with the committer’s verified signature.
RandyMcMillan @RandyMcMillan
test_utils

1920/915495/577612/d388da22da/dd8f1d99ff

Toggle 1920/915495/577612/d388da22da/dd8f1d99ff's commit message

Verified

This commit was signed with the committer’s verified signature.
RandyMcMillan @RandyMcMillan
test_utils

1920/915352/781361/10307340a2/8fb1da1e3b-intermediate-main-Init-List-faux-commands

Toggle 1920/915352/781361/10307340a2/8fb1da1e3b-intermediate-main-Init-List-faux-commands's commit message

Verified

This commit was signed with the committer’s verified signature.
RandyMcMillan @RandyMcMillan
intermediate-main-Init-List-faux-commands

1920/915352/781360/10307340a2/8fb1da1e3b

Toggle 1920/915352/781360/10307340a2/8fb1da1e3b's commit message

Verified

This commit was signed with the committer’s verified signature.
RandyMcMillan @RandyMcMillan
intermediate-main-Init-List-faux-commands

1920/915349/785304/11609c16ed/75dd4f24bc-cargo-test-mostly-pass

Toggle 1920/915349/785304/11609c16ed/75dd4f24bc-cargo-test-mostly-pass's commit message

Verified

This commit was signed with the committer’s verified signature.
RandyMcMillan @RandyMcMillan
intermediate-cargo-test-mostly-pass

1920/915349/785303/11609c16ed/75dd4f24bc

Toggle 1920/915349/785303/11609c16ed/75dd4f24bc's commit message

Verified

This commit was signed with the committer’s verified signature.
RandyMcMillan @RandyMcMillan
intermediate-cargo-test-mostly-pass

1921/915146/146483/05e4ddaf8c/fdb2819ad6-use-git2-0.18.3

Toggle 1921/915146/146483/05e4ddaf8c/fdb2819ad6-use-git2-0.18.3's commit message

Verified

This commit was signed with the committer’s verified signature.
RandyMcMillan @RandyMcMillan
use git2@v0.18.3

1921/915146/146482/05e4ddaf8c/fdb2819ad6

Toggle 1921/915146/146482/05e4ddaf8c/fdb2819ad6's commit message

Verified

This commit was signed with the committer’s verified signature.
RandyMcMillan @RandyMcMillan
use git2@v0.18.3

1921/915145/146910/632af9a091/05e4ddaf8c-cargo-test-passing

Toggle 1921/915145/146910/632af9a091/05e4ddaf8c-cargo-test-passing's commit message

Verified

This commit was signed with the committer’s verified signature.
RandyMcMillan @RandyMcMillan
diff --git a/crates/ngit/src/lib.rs b/crates/ngit/src/lib.rs

new file mode 100644
index 0000000..326dc79
--- /dev/null
+++ b/crates/ngit/src/lib.rs
@@ -0,0 +1,60 @@
+#![cfg_attr(not(test), warn(clippy::pedantic))]
+#![cfg_attr(not(test), warn(clippy::expect_used))]
+
+use anyhow::Result;
+use clap::{Parser, Subcommand};
+
+mod cli_interactor;
+mod client;
+mod config;
+mod git;
+mod key_handling;
+mod login;
+mod repo_ref;
+mod sub_commands;
+
+#[derive(Parser)]
+#[command(author, version, about, long_about = None)]
+#[command(propagate_version = true)]
+pub struct Cli {
+    #[command(subcommand)]
+    command: Commands,
+    /// nsec or hex private key
+    #[arg(short, long, global = true)]
+    nsec: Option<String>,
+    /// password to decrypt nsec
+    #[arg(short, long, global = true)]
+    password: Option<String>,
+    /// disable spinner animations
+    #[arg(long, action)]
+    disable_cli_spinners: bool,
+}
+
+#[derive(Subcommand)]
+enum Commands {
+    /// signal you are this repo's maintainer accepting proposals via nostr
+    Init(sub_commands::init::SubCommandArgs),
+    /// issue commits as a proposal
+    Send(sub_commands::send::SubCommandArgs),
+    /// list proposals; checkout, apply or download selected
+    List,
+    /// send proposal revision
+    Push(sub_commands::push::SubCommandArgs),
+    /// fetch and apply new proposal commits / revisions linked to branch
+    Pull,
+    /// run with --nsec flag to change npub
+    Login(sub_commands::login::SubCommandArgs),
+}
+
+// #[tokio::main]
+// async fn main() -> Result<()> {
+//     let cli = Cli::parse();
+//     match &cli.command {
+//         Commands::Login(args) => sub_commands::login::launch(&cli, args).await,
+//         Commands::Init(args) => sub_commands::init::launch(&cli, args).await,
+//         Commands::Send(args) => sub_commands::send::launch(&cli, args).await,
+//         Commands::List => sub_commands::list::launch().await,
+//         Commands::Pull => sub_commands::pull::launch().await,
+//         Commands::Push(args) => sub_commands::push::launch(&cli, args).await,
+//     }
+// }

1921/915145/146909/632af9a091/05e4ddaf8c

Toggle 1921/915145/146909/632af9a091/05e4ddaf8c's commit message

Verified

This commit was signed with the committer’s verified signature.
RandyMcMillan @RandyMcMillan
diff --git a/crates/ngit/src/lib.rs b/crates/ngit/src/lib.rs

new file mode 100644
index 0000000..326dc79
--- /dev/null
+++ b/crates/ngit/src/lib.rs
@@ -0,0 +1,60 @@
+#![cfg_attr(not(test), warn(clippy::pedantic))]
+#![cfg_attr(not(test), warn(clippy::expect_used))]
+
+use anyhow::Result;
+use clap::{Parser, Subcommand};
+
+mod cli_interactor;
+mod client;
+mod config;
+mod git;
+mod key_handling;
+mod login;
+mod repo_ref;
+mod sub_commands;
+
+#[derive(Parser)]
+#[command(author, version, about, long_about = None)]
+#[command(propagate_version = true)]
+pub struct Cli {
+    #[command(subcommand)]
+    command: Commands,
+    /// nsec or hex private key
+    #[arg(short, long, global = true)]
+    nsec: Option<String>,
+    /// password to decrypt nsec
+    #[arg(short, long, global = true)]
+    password: Option<String>,
+    /// disable spinner animations
+    #[arg(long, action)]
+    disable_cli_spinners: bool,
+}
+
+#[derive(Subcommand)]
+enum Commands {
+    /// signal you are this repo's maintainer accepting proposals via nostr
+    Init(sub_commands::init::SubCommandArgs),
+    /// issue commits as a proposal
+    Send(sub_commands::send::SubCommandArgs),
+    /// list proposals; checkout, apply or download selected
+    List,
+    /// send proposal revision
+    Push(sub_commands::push::SubCommandArgs),
+    /// fetch and apply new proposal commits / revisions linked to branch
+    Pull,
+    /// run with --nsec flag to change npub
+    Login(sub_commands::login::SubCommandArgs),
+}
+
+// #[tokio::main]
+// async fn main() -> Result<()> {
+//     let cli = Cli::parse();
+//     match &cli.command {
+//         Commands::Login(args) => sub_commands::login::launch(&cli, args).await,
+//         Commands::Init(args) => sub_commands::init::launch(&cli, args).await,
+//         Commands::Send(args) => sub_commands::send::launch(&cli, args).await,
+//         Commands::List => sub_commands::list::launch().await,
+//         Commands::Pull => sub_commands::pull::launch().await,
+//         Commands::Push(args) => sub_commands::push::launch(&cli, args).await,
+//     }
+// }
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载