Use ─ (U+2500) to draw borders (#282)

This commit is contained in:
Gabriel Augendre
2022-12-24 13:39:09 +01:00
committed by GitHub
parent 867761be10
commit 8b91e6b2ce
4 changed files with 4 additions and 4 deletions

View File

@@ -488,7 +488,7 @@ pub fn run_composer_update(ctx: &ExecutionContext) -> Result<()> {
pub fn run_dotnet_upgrade(ctx: &ExecutionContext) -> Result<()> {
let dotnet = utils::require("dotnet")?;
let dotnet_help_output = ctx.run_type().execute(&dotnet).arg("-h").output().err().unwrap();
let dotnet_help_output = ctx.run_type().execute(&dotnet).arg("-h").output_checked_utf8().unwrap();
if dotnet_help_output.to_string().contains("tool") {
let output = Command::new(dotnet)

View File

@@ -143,7 +143,7 @@ impl Terminal {
.write_fmt(format_args!(
"{}\n",
style(format_args!(
"\n―― {} {:^border$}",
"\n── {} {:^border$}",
message,
"",
border = max(