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:
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 {
|
if let Some(api_name) = api_name {
|
||||||
eprintln!(" ├ Requested by `{}` API", api_name);
|
eprintln!(" ├ Requested by `{}` API", api_name);
|
||||||
}
|
}
|
||||||
let msg = format!(
|
let msg = format!("Run again with --allow-{} to bypass this prompt.", name);
|
||||||
" ├ Run again with --allow-{} to bypass this prompt.",
|
eprintln!(" ├ {}", colors::italic(&msg));
|
||||||
name
|
|
||||||
);
|
|
||||||
eprintln!("{}", colors::italic(&msg));
|
|
||||||
eprint!(" └ {}", colors::bold("Allow?"));
|
eprint!(" └ {}", colors::bold("Allow?"));
|
||||||
eprint!(" {} > ", OPTS);
|
eprint!(" {} > ", OPTS);
|
||||||
let value = loop {
|
let value = loop {
|
||||||
|
|
Loading…
Reference in a new issue