From d5284b758661c491e6a206570763f2982424b70a Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 23 Feb 2024 13:57:23 +0000 Subject: feat(init): add customisation and defaults - allow more cli input options - allow customisation of more fields in interface - change default identifer from shorthand root commit to short name - defaults to existing repo event (users or other) or maintainers.yaml --- src/repo_ref.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/repo_ref.rs') diff --git a/src/repo_ref.rs b/src/repo_ref.rs index 8e944d7..c7b42fa 100644 --- a/src/repo_ref.rs +++ b/src/repo_ref.rs @@ -152,6 +152,7 @@ pub async fn fetch( #[cfg(not(test))] client: &Client, // TODO: more rubust way of finding repo events fallback_relays: Vec, + prompt_for_nevent_if_cant_event: bool, ) -> Result { let repo_config = get_repo_config_from_yaml(git_repo); @@ -187,6 +188,9 @@ pub async fn fetch( { break event.clone(); } + if !prompt_for_nevent_if_cant_event { + bail!("cannot find repo event"); + } println!("cannot find repo event"); loop { let bech32 = Interactor::default() -- cgit v1.2.3