Skip to content

Commit

Permalink
extended the changes to the other places
Browse files Browse the repository at this point in the history
  • Loading branch information
frol committed Apr 13, 2024
1 parent 4047327 commit e4542f7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ fn main() -> crate::common::CliResult {
eprintln!("{success_message}");
eprintln!();
eprintln!(
"{}",
" {}",
shell_words::join(
std::iter::once(near_cli_exec_path).chain(vec_cmd)
)
.yellow()
);
}
Err(err) => {
Expand Down Expand Up @@ -113,8 +114,7 @@ fn main() -> crate::common::CliResult {
interactive_clap::ResultFromCli::Ok(cli_cmd)
| interactive_clap::ResultFromCli::Cancel(Some(cli_cmd)) => {
eprintln!(
"\n\nHere is your console command if you need to script it or re-run:\n{:>3}{}",
"",
"\n\nHere is your console command if you need to script it or re-run:\n {}\n",
shell_words::join(
std::iter::once(&near_cli_exec_path).chain(&cli_cmd.to_cli_args())
)
Expand All @@ -132,10 +132,11 @@ fn main() -> crate::common::CliResult {
interactive_clap::ResultFromCli::Err(optional_cli_cmd, err) => {
if let Some(cli_cmd) = optional_cli_cmd {
eprintln!(
"\nHere is your console command if you need to script it or re-run:\n{}",
"\nHere is your console command if you need to script it or re-run:\n {}\n",
shell_words::join(
std::iter::once(&near_cli_exec_path).chain(&cli_cmd.to_cli_args())
)
.yellow()
);
}
Err(err)
Expand Down Expand Up @@ -188,6 +189,7 @@ fn main() -> crate::common::CliResult {
std::iter::once(near_cli_exec_path)
.chain(self_update_cli_cmd.to_cli_args())
)
.yellow()
);
}
}
Expand Down

0 comments on commit e4542f7

Please sign in to comment.