diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-05-14 07:28:21 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-05-14 07:28:21 +0100 |
| commit | 6751d9377f853030633c9801735f33f31425326c (patch) | |
| tree | 13bdd53e7f4751ac543f28c14564af596d392e35 /src/sub_commands/init.rs | |
| parent | f5c82ee70dc2e881c2b1013f6d352f5da7b08291 (diff) | |
fix: `ngit init` multiple maintainers
fixes:
nostr:nevent1qqsz2g7gexkmqgr0x4g5kf9py8vx06p8nyn78v7mhevprasnyfy5swcpp4mhxue69uhkummn9ekx7mqzyr7jprhgeregx7q2j4fgjmjgy0xfm34l63pqvwyf2acsd9q0mynuzdyll0c
Diffstat (limited to 'src/sub_commands/init.rs')
| -rw-r--r-- | src/sub_commands/init.rs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/sub_commands/init.rs b/src/sub_commands/init.rs index 4b35d28..edaca15 100644 --- a/src/sub_commands/init.rs +++ b/src/sub_commands/init.rs | |||
| @@ -205,15 +205,12 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 205 | }; | 205 | }; |
| 206 | 'outer: loop { | 206 | 'outer: loop { |
| 207 | if !dont_ask { | 207 | if !dont_ask { |
| 208 | maintainers_string = Interactor::default() | 208 | println!("{}", &maintainers_string); |
| 209 | .input( | 209 | maintainers_string = Interactor::default().input( |
| 210 | PromptInputParms::default() | 210 | PromptInputParms::default() |
| 211 | .with_prompt("maintainers") | 211 | .with_prompt("maintainers") |
| 212 | .with_default(maintainers_string), | 212 | .with_default(maintainers_string), |
| 213 | )? | 213 | )?; |
| 214 | .split(' ') | ||
| 215 | .map(std::string::ToString::to_string) | ||
| 216 | .collect(); | ||
| 217 | } | 214 | } |
| 218 | let mut maintainers: Vec<PublicKey> = vec![]; | 215 | let mut maintainers: Vec<PublicKey> = vec![]; |
| 219 | for m in maintainers_string.split(' ') { | 216 | for m in maintainers_string.split(' ') { |