From 7cb0fc43baf0f0986e7454efd7e0d4b64efc15b4 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 2 Dec 2024 06:09:46 +0000 Subject: feat(init): improve guidance copy add a "maintainers.yaml" title to prevent a wall of unbroken text --- src/bin/ngit/sub_commands/init.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bin/ngit/sub_commands') 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 @@ use std::{collections::HashMap, str::FromStr}; use anyhow::{Context, Result}; +use console::Style; use ngit::{cli_interactor::PromptConfirmParms, git::nostr_url::NostrUrlDecoded}; use nostr::{nips::nip01::Coordinate, FromBech32, PublicKey, ToBech32}; use nostr_sdk::{Kind, RelayUrl}; @@ -468,6 +469,8 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { } Err(_) => false, } { + let title_style = Style::new().bold().fg(console::Color::Yellow); + println!("{}", title_style.apply_to("maintainers.yaml")); save_repo_config_to_yaml( &git_repo, identifier.clone(), -- cgit v1.2.3