mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
fix(permissions): fix italic font in permission prompt (#17249)
This commit is contained in:
parent
501472f06b
commit
7a5b6a3261
1 changed files with 2 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue