1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-11 16:42:21 -05:00

fix(permissions): fix italic font in permission prompt (#17249)

This commit is contained in:
Bartek Iwańczuk 2023-01-03 17:30:15 +01:00
parent 211a8b438a
commit 7177768e49
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -201,11 +201,8 @@ impl PermissionPrompter for TtyPrompter {
if let Some(api_name) = api_name {
eprintln!(" ├ Requested by `{}` API", api_name);
}
let msg = format!(
" ├ Run again with --allow-{} to bypass this prompt.",
name
);
eprintln!("{}", colors::italic(&msg));
let msg = format!("Run again with --allow-{} to bypass this prompt.", name);
eprintln!("{}", colors::italic(&msg));
eprint!("{}", colors::bold("Allow?"));
eprint!(" {} > ", OPTS);
let value = loop {