diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-12-02 06:09:46 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-12-02 06:09:46 +0000 |
| commit | 7cb0fc43baf0f0986e7454efd7e0d4b64efc15b4 (patch) | |
| tree | 2e882c2b690dcb92a38870f2fc49206173bd376b /src/bin | |
| parent | 830056c10111c6b2049513323e7e7dba81260138 (diff) | |
feat(init): improve guidance copy
add a "maintainers.yaml" title to prevent a wall of unbroken text
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/ngit/sub_commands/init.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/ngit/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs index ffee9bd..bf57769 100644 --- a/src/bin/ngit/sub_commands/init.rs +++ b/src/bin/ngit/sub_commands/init.rs | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | use std::{collections::HashMap, str::FromStr}; | 1 | use std::{collections::HashMap, str::FromStr}; |
| 2 | 2 | ||
| 3 | use anyhow::{Context, Result}; | 3 | use anyhow::{Context, Result}; |
| 4 | use console::Style; | ||
| 4 | use ngit::{cli_interactor::PromptConfirmParms, git::nostr_url::NostrUrlDecoded}; | 5 | use ngit::{cli_interactor::PromptConfirmParms, git::nostr_url::NostrUrlDecoded}; |
| 5 | use nostr::{nips::nip01::Coordinate, FromBech32, PublicKey, ToBech32}; | 6 | use nostr::{nips::nip01::Coordinate, FromBech32, PublicKey, ToBech32}; |
| 6 | use nostr_sdk::{Kind, RelayUrl}; | 7 | use nostr_sdk::{Kind, RelayUrl}; |
| @@ -468,6 +469,8 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 468 | } | 469 | } |
| 469 | Err(_) => false, | 470 | Err(_) => false, |
| 470 | } { | 471 | } { |
| 472 | let title_style = Style::new().bold().fg(console::Color::Yellow); | ||
| 473 | println!("{}", title_style.apply_to("maintainers.yaml")); | ||
| 471 | save_repo_config_to_yaml( | 474 | save_repo_config_to_yaml( |
| 472 | &git_repo, | 475 | &git_repo, |
| 473 | identifier.clone(), | 476 | identifier.clone(), |