mirror of
https://github.com/denoland/deno.git
synced 2025-01-08 15:19:40 -05:00
refactor(permissions): use less space for permissions prompt (#17708)
This commit is contained in:
parent
b3e88e0681
commit
9ea899afa7
1 changed files with 5 additions and 5 deletions
|
@ -199,7 +199,7 @@ impl PermissionPrompter for TtyPrompter {
|
||||||
|
|
||||||
// print to stderr so that if stdout is piped this is still displayed.
|
// print to stderr so that if stdout is piped this is still displayed.
|
||||||
const OPTS: &str = "[y/n] (y = yes, allow; n = no, deny)";
|
const OPTS: &str = "[y/n] (y = yes, allow; n = no, deny)";
|
||||||
eprint!("{PERMISSION_EMOJI} ┌ ");
|
eprint!("┌ {PERMISSION_EMOJI} ");
|
||||||
eprint!("{}", colors::bold("Deno requests "));
|
eprint!("{}", colors::bold("Deno requests "));
|
||||||
eprint!("{}", colors::bold(message));
|
eprint!("{}", colors::bold(message));
|
||||||
eprintln!("{}", colors::bold("."));
|
eprintln!("{}", colors::bold("."));
|
||||||
|
|
Loading…
Reference in a new issue