diff options
| -rw-r--r-- | Cargo.toml | 8 | ||||
| -rw-r--r-- | src/bin/git_remote_nostr/main.rs (renamed from src/git_remote_helper.rs) | 0 | ||||
| -rw-r--r-- | src/bin/ngit/cli.rs (renamed from src/cli.rs) | 0 | ||||
| -rw-r--r-- | src/bin/ngit/main.rs (renamed from src/main.rs) | 10 | ||||
| -rw-r--r-- | src/bin/ngit/sub_commands/fetch.rs (renamed from src/sub_commands/fetch.rs) | 0 | ||||
| -rw-r--r-- | src/bin/ngit/sub_commands/init.rs (renamed from src/sub_commands/init.rs) | 0 | ||||
| -rw-r--r-- | src/bin/ngit/sub_commands/list.rs (renamed from src/sub_commands/list.rs) | 0 | ||||
| -rw-r--r-- | src/bin/ngit/sub_commands/login.rs (renamed from src/sub_commands/login.rs) | 0 | ||||
| -rw-r--r-- | src/bin/ngit/sub_commands/mod.rs (renamed from src/sub_commands/mod.rs) | 0 | ||||
| -rw-r--r-- | src/bin/ngit/sub_commands/pull.rs (renamed from src/sub_commands/pull.rs) | 0 | ||||
| -rw-r--r-- | src/bin/ngit/sub_commands/push.rs (renamed from src/sub_commands/push.rs) | 0 | ||||
| -rw-r--r-- | src/bin/ngit/sub_commands/send.rs (renamed from src/sub_commands/send.rs) | 0 | ||||
| -rw-r--r-- | src/key_handling/mod.rs | 1 | ||||
| -rw-r--r-- | src/lib/cli_interactor.rs (renamed from src/cli_interactor.rs) | 0 | ||||
| -rw-r--r-- | src/lib/client.rs (renamed from src/client.rs) | 0 | ||||
| -rw-r--r-- | src/lib/git/mod.rs (renamed from src/git.rs) | 0 | ||||
| -rw-r--r-- | src/lib/login/key_encryption.rs (renamed from src/key_handling/encryption.rs) | 0 | ||||
| -rw-r--r-- | src/lib/login/mod.rs (renamed from src/login.rs) | 0 | ||||
| -rw-r--r-- | src/lib/login/user.rs (renamed from src/config.rs) | 0 | ||||
| -rw-r--r-- | src/lib/mod.rs | 16 | ||||
| -rw-r--r-- | src/lib/repo_ref.rs (renamed from src/repo_ref.rs) | 0 | ||||
| -rw-r--r-- | src/lib/repo_state.rs (renamed from src/repo_state.rs) | 0 |
22 files changed, 24 insertions, 11 deletions
| @@ -52,10 +52,14 @@ members = [ | |||
| 52 | "test_utils", | 52 | "test_utils", |
| 53 | ] | 53 | ] |
| 54 | 54 | ||
| 55 | [lib] | ||
| 56 | name = "ngit" | ||
| 57 | path = "src/lib/mod.rs" | ||
| 58 | |||
| 55 | [[bin]] | 59 | [[bin]] |
| 56 | name = "ngit" | 60 | name = "ngit" |
| 57 | path = "src/main.rs" | 61 | path = "src/bin/ngit/main.rs" |
| 58 | 62 | ||
| 59 | [[bin]] | 63 | [[bin]] |
| 60 | name = "git-remote-nostr" | 64 | name = "git-remote-nostr" |
| 61 | path = "src/git_remote_helper.rs" | 65 | path = "src/bin/git_remote_nostr/main.rs" |
diff --git a/src/git_remote_helper.rs b/src/bin/git_remote_nostr/main.rs index a5244bf..a5244bf 100644 --- a/src/git_remote_helper.rs +++ b/src/bin/git_remote_nostr/main.rs | |||
diff --git a/src/cli.rs b/src/bin/ngit/cli.rs index d0f934e..d0f934e 100644 --- a/src/cli.rs +++ b/src/bin/ngit/cli.rs | |||
diff --git a/src/main.rs b/src/bin/ngit/main.rs index e833e4a..97e5981 100644 --- a/src/main.rs +++ b/src/bin/ngit/main.rs | |||
| @@ -7,14 +7,8 @@ use clap::Parser; | |||
| 7 | use cli::{Cli, Commands}; | 7 | use cli::{Cli, Commands}; |
| 8 | 8 | ||
| 9 | mod cli; | 9 | mod cli; |
| 10 | mod cli_interactor; | 10 | use ngit::*; |
| 11 | mod client; | 11 | |
| 12 | mod config; | ||
| 13 | mod git; | ||
| 14 | mod key_handling; | ||
| 15 | mod login; | ||
| 16 | mod repo_ref; | ||
| 17 | mod repo_state; | ||
| 18 | mod sub_commands; | 12 | mod sub_commands; |
| 19 | 13 | ||
| 20 | #[tokio::main] | 14 | #[tokio::main] |
diff --git a/src/sub_commands/fetch.rs b/src/bin/ngit/sub_commands/fetch.rs index b1e83c5..b1e83c5 100644 --- a/src/sub_commands/fetch.rs +++ b/src/bin/ngit/sub_commands/fetch.rs | |||
diff --git a/src/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs index 5b7e03d..5b7e03d 100644 --- a/src/sub_commands/init.rs +++ b/src/bin/ngit/sub_commands/init.rs | |||
diff --git a/src/sub_commands/list.rs b/src/bin/ngit/sub_commands/list.rs index ac1f4ab..ac1f4ab 100644 --- a/src/sub_commands/list.rs +++ b/src/bin/ngit/sub_commands/list.rs | |||
diff --git a/src/sub_commands/login.rs b/src/bin/ngit/sub_commands/login.rs index 8a3788f..8a3788f 100644 --- a/src/sub_commands/login.rs +++ b/src/bin/ngit/sub_commands/login.rs | |||
diff --git a/src/sub_commands/mod.rs b/src/bin/ngit/sub_commands/mod.rs index 29a60f9..29a60f9 100644 --- a/src/sub_commands/mod.rs +++ b/src/bin/ngit/sub_commands/mod.rs | |||
diff --git a/src/sub_commands/pull.rs b/src/bin/ngit/sub_commands/pull.rs index e33a744..e33a744 100644 --- a/src/sub_commands/pull.rs +++ b/src/bin/ngit/sub_commands/pull.rs | |||
diff --git a/src/sub_commands/push.rs b/src/bin/ngit/sub_commands/push.rs index 7a82c7a..7a82c7a 100644 --- a/src/sub_commands/push.rs +++ b/src/bin/ngit/sub_commands/push.rs | |||
diff --git a/src/sub_commands/send.rs b/src/bin/ngit/sub_commands/send.rs index 3c4df9d..3c4df9d 100644 --- a/src/sub_commands/send.rs +++ b/src/bin/ngit/sub_commands/send.rs | |||
diff --git a/src/key_handling/mod.rs b/src/key_handling/mod.rs deleted file mode 100644 index 81c4253..0000000 --- a/src/key_handling/mod.rs +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | pub mod encryption; | ||
diff --git a/src/cli_interactor.rs b/src/lib/cli_interactor.rs index 4cf6357..4cf6357 100644 --- a/src/cli_interactor.rs +++ b/src/lib/cli_interactor.rs | |||
diff --git a/src/client.rs b/src/lib/client.rs index abde217..abde217 100644 --- a/src/client.rs +++ b/src/lib/client.rs | |||
diff --git a/src/git.rs b/src/lib/git/mod.rs index 5919667..5919667 100644 --- a/src/git.rs +++ b/src/lib/git/mod.rs | |||
diff --git a/src/key_handling/encryption.rs b/src/lib/login/key_encryption.rs index 3841d50..3841d50 100644 --- a/src/key_handling/encryption.rs +++ b/src/lib/login/key_encryption.rs | |||
diff --git a/src/login.rs b/src/lib/login/mod.rs index 19bb97c..19bb97c 100644 --- a/src/login.rs +++ b/src/lib/login/mod.rs | |||
diff --git a/src/config.rs b/src/lib/login/user.rs index 547fe7e..547fe7e 100644 --- a/src/config.rs +++ b/src/lib/login/user.rs | |||
diff --git a/src/lib/mod.rs b/src/lib/mod.rs new file mode 100644 index 0000000..61dfc49 --- /dev/null +++ b/src/lib/mod.rs | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | mod cli_interactor; | ||
| 2 | mod client; | ||
| 3 | mod config; | ||
| 4 | mod git; | ||
| 5 | mod key_handling; | ||
| 6 | mod login; | ||
| 7 | mod repo_ref; | ||
| 8 | mod repo_state; | ||
| 9 | |||
| 10 | pub use client; | ||
| 11 | pub use config; | ||
| 12 | pub use git; | ||
| 13 | pub use key_handling; | ||
| 14 | pub use login; | ||
| 15 | pub use repo_ref; | ||
| 16 | pub use repo_state; | ||
diff --git a/src/repo_ref.rs b/src/lib/repo_ref.rs index 0e57d96..0e57d96 100644 --- a/src/repo_ref.rs +++ b/src/lib/repo_ref.rs | |||
diff --git a/src/repo_state.rs b/src/lib/repo_state.rs index a5cebab..a5cebab 100644 --- a/src/repo_state.rs +++ b/src/lib/repo_state.rs | |||