Skip to content

Commit 63daf64

Browse files
George Cosmaeva-cosma
authored andcommitted
fix: fix spacing issue for display of info/list commands in headers
Signed-off-by: George Cosma <george.cosma@wyliodrin.com>
1 parent f77e087 commit 63daf64

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tockloader-cli/src/display.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const BOLD_YELLOW: &str = "\x1b[1;33m";
1515
pub async fn print_list(app_details: &[AppAttributes]) {
1616
for (i, details) in app_details.iter().enumerate() {
1717
println!("\n{RESET}{BOLD_MAGENTA} ┏━━━━━━━━━━━━━━━━┓");
18-
println!("{RESET}{BOLD_RED} ┃ {RESET}{BOLD_GREEN} App_{i} {RESET}{BOLD_RED}┃",);
18+
println!("{RESET}{BOLD_RED} ┃ {RESET}{BOLD_GREEN} App_{i:<9} {RESET}{BOLD_RED}┃",);
1919
println!("{RESET}{BOLD_YELLOW} ┗━━━━━━━━━━━━━━━━┛");
2020
println!(
2121
"\n {BOLD_GREEN} Name: {RESET}{}",
@@ -47,7 +47,7 @@ pub async fn print_list(app_details: &[AppAttributes]) {
4747
pub async fn print_info(app_details: &mut [AppAttributes], system_details: &mut SystemAttributes) {
4848
for (i, details) in app_details.iter().enumerate() {
4949
println!("\n{RESET}{BOLD_MAGENTA} ┏━━━━━━━━━━━━━━━━┓");
50-
println!("{RESET}{BOLD_RED} ┃ {RESET}{BOLD_GREEN} App_{i} {RESET}{BOLD_RED}┃");
50+
println!("{RESET}{BOLD_RED} ┃ {RESET}{BOLD_GREEN} App_{i:<9} {RESET}{BOLD_RED}┃");
5151
println!("{RESET}{BOLD_YELLOW} ┗━━━━━━━━━━━━━━━━┛");
5252

5353
println!(

0 commit comments

Comments
 (0)