From c59c4d0240d1a04adf8e97af117cb6e15f9e11d5 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 31 Oct 2024 14:03:50 +0000 Subject: feat(init): clarify name, id, desc labels based on user testing and feedback --- src/bin/ngit/sub_commands/init.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/bin') diff --git a/src/bin/ngit/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs index 8f9ff0d..1519132 100644 --- a/src/bin/ngit/sub_commands/init.rs +++ b/src/bin/ngit/sub_commands/init.rs @@ -1,6 +1,7 @@ use std::collections::HashMap; use anyhow::{Context, Result}; +use ngit::cli_interactor::PromptConfirmParms; use nostr::{nips::nip01::Coordinate, FromBech32, PublicKey, ToBech32}; use nostr_sdk::Kind; @@ -96,7 +97,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { Some(t) => t.clone(), None => Interactor::default().input( PromptInputParms::default() - .with_prompt("name") + .with_prompt("repo name") .with_default(if let Some(repo_ref) = &repo_ref { repo_ref.name.clone() } else if let Some(repo_coordinates) = repo_coordinates.clone() { @@ -115,7 +116,9 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { Some(t) => t.clone(), None => Interactor::default().input( PromptInputParms::default() - .with_prompt("identifier") + .with_prompt( + "repo identifier (typically the short name with hypens instead of spaces)", + ) .with_default(if let Some(repo_ref) = &repo_ref { repo_ref.identifier.clone() } else if let Some(repo_coordinates) = repo_coordinates.clone() { @@ -154,7 +157,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { Some(t) => t.clone(), None => Interactor::default().input( PromptInputParms::default() - .with_prompt("description") + .with_prompt("repo description (one sentance)") .with_default(if let Some(repo_ref) = &repo_ref { repo_ref.description.clone() } else { -- cgit v1.2.3