Skip to content

Commit c9e6f07

Browse files
Copilotjosecelano
andcommitted
fix: use steps() method with multi-line strings for numbered list
Use steps() method as intended by passing multi-line strings for steps that have sub-items. This provides semantic clarity and automatic numbering while maintaining the exact original output format. Co-authored-by: josecelano <[email protected]>
1 parent 6a2902d commit c9e6f07

File tree

1 file changed

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

1 file changed

+4
-9
lines changed

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

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

5757
output.blank_line();
5858

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

0 commit comments

Comments
 (0)