diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-11-27 11:52:18 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-11-27 11:52:18 +0000 |
| commit | 17640d83f01016142f9200138a591276bb80e157 (patch) | |
| tree | fd5c20422a942e19b0f2b7c5c68bf149ca7efa2b /src/bin/ngit/sub_commands | |
| parent | 9632349a85fd53bc5af272d3539d38030567412b (diff) | |
feat(init): make description optional
to make the onboarding experience smoother
Diffstat (limited to 'src/bin/ngit/sub_commands')
| -rw-r--r-- | src/bin/ngit/sub_commands/init.rs | 1 |
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 { |