upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bin/ngit/sub_commands/init.rs9
1 files changed, 6 insertions, 3 deletions
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 @@
1use std::collections::HashMap; 1use std::collections::HashMap;
2 2
3use anyhow::{Context, Result}; 3use anyhow::{Context, Result};
4use ngit::cli_interactor::PromptConfirmParms;
4use nostr::{nips::nip01::Coordinate, FromBech32, PublicKey, ToBech32}; 5use nostr::{nips::nip01::Coordinate, FromBech32, PublicKey, ToBech32};
5use nostr_sdk::Kind; 6use nostr_sdk::Kind;
6 7
@@ -96,7 +97,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> {
96 Some(t) => t.clone(), 97 Some(t) => t.clone(),
97 None => Interactor::default().input( 98 None => Interactor::default().input(
98 PromptInputParms::default() 99 PromptInputParms::default()
99 .with_prompt("name") 100 .with_prompt("repo name")
100 .with_default(if let Some(repo_ref) = &repo_ref { 101 .with_default(if let Some(repo_ref) = &repo_ref {
101 repo_ref.name.clone() 102 repo_ref.name.clone()
102 } else if let Some(repo_coordinates) = repo_coordinates.clone() { 103 } else if let Some(repo_coordinates) = repo_coordinates.clone() {
@@ -115,7 +116,9 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> {
115 Some(t) => t.clone(), 116 Some(t) => t.clone(),
116 None => Interactor::default().input( 117 None => Interactor::default().input(
117 PromptInputParms::default() 118 PromptInputParms::default()
118 .with_prompt("identifier") 119 .with_prompt(
120 "repo identifier (typically the short name with hypens instead of spaces)",
121 )
119 .with_default(if let Some(repo_ref) = &repo_ref { 122 .with_default(if let Some(repo_ref) = &repo_ref {
120 repo_ref.identifier.clone() 123 repo_ref.identifier.clone()
121 } else if let Some(repo_coordinates) = repo_coordinates.clone() { 124 } else if let Some(repo_coordinates) = repo_coordinates.clone() {
@@ -154,7 +157,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> {
154 Some(t) => t.clone(), 157 Some(t) => t.clone(),
155 None => Interactor::default().input( 158 None => Interactor::default().input(
156 PromptInputParms::default() 159 PromptInputParms::default()
157 .with_prompt("description") 160 .with_prompt("repo description (one sentance)")
158 .with_default(if let Some(repo_ref) = &repo_ref { 161 .with_default(if let Some(repo_ref) = &repo_ref {
159 repo_ref.description.clone() 162 repo_ref.description.clone()
160 } else { 163 } else {