diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-11-28 15:08:01 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-11-28 15:08:40 +0000 |
| commit | 9bee5f12efa5ed751468c68073c9122e12c22b5f (patch) | |
| tree | f2b042e95a1721febcc2ca848cb604b1d017fb21 /src/bin/ngit/sub_commands/init.rs | |
| parent | 5dbac4d643f4dc5110bf9971e29598dfc30d75f0 (diff) | |
feat(init): don't create maintainers.yaml
because feedback is that its too confusing. mot removing it for
existing projects that use it
Diffstat (limited to 'src/bin/ngit/sub_commands/init.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/init.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/ngit/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs index 3dc63ad..2817506 100644 --- a/src/bin/ngit/sub_commands/init.rs +++ b/src/bin/ngit/sub_commands/init.rs | |||
| @@ -444,7 +444,10 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 444 | .iter() | 444 | .iter() |
| 445 | .map(std::string::ToString::to_string) | 445 | .map(std::string::ToString::to_string) |
| 446 | .collect::<Vec<String>>(); | 446 | .collect::<Vec<String>>(); |
| 447 | // if yaml file doesnt exist or needs updating | 447 | |
| 448 | // no longer create a new maintainers.yaml file - its too confusing for users | ||
| 449 | // as it falls out of sync with data in nostr event . update if it already | ||
| 450 | // exists | ||
| 448 | if match &repo_config_result { | 451 | if match &repo_config_result { |
| 449 | Ok(config) => { | 452 | Ok(config) => { |
| 450 | !<std::option::Option<std::string::String> as Clone>::clone(&config.identifier) | 453 | !<std::option::Option<std::string::String> as Clone>::clone(&config.identifier) |
| @@ -453,7 +456,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 453 | || !extract_pks(config.maintainers.clone())?.eq(&maintainers) | 456 | || !extract_pks(config.maintainers.clone())?.eq(&maintainers) |
| 454 | || !config.relays.eq(&relays) | 457 | || !config.relays.eq(&relays) |
| 455 | } | 458 | } |
| 456 | Err(_) => true, | 459 | Err(_) => false, |
| 457 | } { | 460 | } { |
| 458 | save_repo_config_to_yaml( | 461 | save_repo_config_to_yaml( |
| 459 | &git_repo, | 462 | &git_repo, |