Skip to content

Commit 6a2902d

Browse files
Copilotjosecelano
andcommitted
fix: use info_block for numbered list with sub-items
Use info_block() instead of steps() to maintain proper structure of numbered list with sub-items (bullet points). This preserves the exact original output format where main steps are numbered and sub-items are indented with dashes. Co-authored-by: josecelano <[email protected]>
1 parent 3728e8f commit 6a2902d

File tree

1 file changed

+4
-4
lines changed
  • src/presentation/commands/create/subcommands

1 file changed

+4
-4
lines changed

src/presentation/commands/create/subcommands/template.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@ pub fn handle_template_generation(output_path: &Path) -> Result<(), CreateSubcom
5656

5757
output.blank_line();
5858

59-
output.steps(
59+
output.info_block(
6060
"Next steps:",
6161
&[
62-
"Edit the template file and replace placeholder values:",
62+
"1. Edit the template file and replace placeholder values:",
6363
" - REPLACE_WITH_ENVIRONMENT_NAME: Choose a unique environment name (e.g., 'dev', 'staging')",
6464
" - REPLACE_WITH_SSH_PRIVATE_KEY_PATH: Path to your SSH private key",
6565
" - REPLACE_WITH_SSH_PUBLIC_KEY_PATH: Path to your SSH public key",
66-
"Review default values:",
66+
"2. Review default values:",
6767
" - username: 'torrust' (can be changed if needed)",
6868
" - port: 22 (standard SSH port)",
6969
&format!(
70-
"Create the environment:\n torrust-tracker-deployer create environment --env-file {}",
70+
"3. Create the environment:\n torrust-tracker-deployer create environment --env-file {}",
7171
output_path.display()
7272
),
7373
],

0 commit comments

Comments
 (0)