Skip to content

Commit

Permalink
feat: remove pull push and fetch ngit cmds
Browse files Browse the repository at this point in the history
to simplify the api and encourage use of the git remote helper
  • Loading branch information
DanConwayDev committed Nov 27, 2024
1 parent 72d1d0c commit ef552c1
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 1,615 deletions.
6 changes: 0 additions & 6 deletions src/bin/ngit/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,12 @@ pub fn extract_signer_cli_arguments(args: &Cli) -> Result<Option<SignerInfo>> {

#[derive(Subcommand)]
pub enum Commands {
/// update cache with latest updates from nostr
Fetch(sub_commands::fetch::SubCommandArgs),
/// 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,
/// login, logout or export keys
Account(AccountSubCommandArgs),
}
Expand Down
3 changes: 0 additions & 3 deletions src/bin/ngit/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ async fn main() -> Result<()> {
AccountCommands::Logout => sub_commands::logout::launch().await,
AccountCommands::ExportKeys => sub_commands::export_keys::launch().await,
},
Commands::Fetch(args) => sub_commands::fetch::launch(&cli, args).await,
Commands::Init(args) => sub_commands::init::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,
Commands::Send(args) => sub_commands::send::launch(&cli, args, false).await,
}
}
37 changes: 0 additions & 37 deletions src/bin/ngit/sub_commands/fetch.rs

This file was deleted.

3 changes: 0 additions & 3 deletions src/bin/ngit/sub_commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
pub mod export_keys;
pub mod fetch;
pub mod init;
pub mod list;
pub mod login;
pub mod logout;
pub mod pull;
pub mod push;
pub mod send;
203 changes: 0 additions & 203 deletions src/bin/ngit/sub_commands/pull.rs

This file was deleted.

Loading

0 comments on commit ef552c1

Please sign in to comment.