From 9bee5f12efa5ed751468c68073c9122e12c22b5f Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 28 Nov 2024 15:08:01 +0000 Subject: feat(init): don't create maintainers.yaml because feedback is that its too confusing. mot removing it for existing projects that use it --- src/bin/ngit/sub_commands/init.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/bin') 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<()> { .iter() .map(std::string::ToString::to_string) .collect::>(); - // if yaml file doesnt exist or needs updating + + // no longer create a new maintainers.yaml file - its too confusing for users + // as it falls out of sync with data in nostr event . update if it already + // exists if match &repo_config_result { Ok(config) => { ! as Clone>::clone(&config.identifier) @@ -453,7 +456,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { || !extract_pks(config.maintainers.clone())?.eq(&maintainers) || !config.relays.eq(&relays) } - Err(_) => true, + Err(_) => false, } { save_repo_config_to_yaml( &git_repo, -- cgit v1.2.3