upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-11-27 11:52:18 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-11-27 11:52:18 +0000
commit17640d83f01016142f9200138a591276bb80e157 (patch)
treefd5c20422a942e19b0f2b7c5c68bf149ca7efa2b /src/bin
parent9632349a85fd53bc5af272d3539d38030567412b (diff)
feat(init): make description optional
to make the onboarding experience smoother
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/ngit/sub_commands/init.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/ngit/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs
index 9f5093e..d0b4b6d 100644
--- a/src/bin/ngit/sub_commands/init.rs
+++ b/src/bin/ngit/sub_commands/init.rs
@@ -155,6 +155,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> {
155 None => Interactor::default().input( 155 None => Interactor::default().input(
156 PromptInputParms::default() 156 PromptInputParms::default()
157 .with_prompt("repo description (one sentance)") 157 .with_prompt("repo description (one sentance)")
158 .optional()
158 .with_default(if let Some(repo_ref) = &repo_ref { 159 .with_default(if let Some(repo_ref) = &repo_ref {
159 repo_ref.description.clone() 160 repo_ref.description.clone()
160 } else { 161 } else {