diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2023-10-01 00:00:00 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2023-10-01 00:00:00 +0100 |
| commit | 6e9245542f070c39a1975f0d53d88913c4ac667d (patch) | |
| tree | 835c1d3db05f76f437c5d8ebc5591f1796cdab60 /src/main.rs | |
| parent | aa48a626c08cec353d5563a8831239d2e69c9f3d (diff) | |
feat(prs-create) find commits and create events
- identify commits
- create pull request event
- create patch events
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index e6eac32..5094c11 100644 --- a/src/main.rs +++ b/src/main.rs | |||
| @@ -6,6 +6,7 @@ use clap::{Parser, Subcommand}; | |||
| 6 | 6 | ||
| 7 | mod cli_interactor; | 7 | mod cli_interactor; |
| 8 | mod config; | 8 | mod config; |
| 9 | mod git; | ||
| 9 | mod key_handling; | 10 | mod key_handling; |
| 10 | mod login; | 11 | mod login; |
| 11 | mod sub_commands; | 12 | mod sub_commands; |
| @@ -28,11 +29,14 @@ pub struct Cli { | |||
| 28 | enum Commands { | 29 | enum Commands { |
| 29 | /// save encrypted nsec for future use | 30 | /// save encrypted nsec for future use |
| 30 | Login(sub_commands::login::SubCommandArgs), | 31 | Login(sub_commands::login::SubCommandArgs), |
| 32 | /// create and issue Prs | ||
| 33 | Prs(sub_commands::prs::SubCommandArgs), | ||
| 31 | } | 34 | } |
| 32 | 35 | ||
| 33 | fn main() -> Result<()> { | 36 | fn main() -> Result<()> { |
| 34 | let cli = Cli::parse(); | 37 | let cli = Cli::parse(); |
| 35 | match &cli.command { | 38 | match &cli.command { |
| 36 | Commands::Login(args) => sub_commands::login::launch(&cli, args), | 39 | Commands::Login(args) => sub_commands::login::launch(&cli, args), |
| 40 | Commands::Prs(args) => sub_commands::prs::launch(&cli, args), | ||
| 37 | } | 41 | } |
| 38 | } | 42 | } |