1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -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 committed by GitHub
parent 501472f06b
commit 7a5b6a3261
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {