mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
fix(runtime): disable console color for non tty stdout (#13782)
This commit is contained in:
parent
a41d399f5f
commit
6a030a5396
8 changed files with 32 additions and 2 deletions
|
@ -15,6 +15,7 @@ pub struct BootstrapOptions {
|
|||
pub location: Option<ModuleSpecifier>,
|
||||
/// Sets `Deno.noColor` in JS runtime.
|
||||
pub no_color: bool,
|
||||
pub is_tty: bool,
|
||||
/// Sets `Deno.version.deno` in JS runtime.
|
||||
pub runtime_version: String,
|
||||
/// Sets `Deno.version.typescript` in JS runtime.
|
||||
|
@ -33,6 +34,7 @@ impl BootstrapOptions {
|
|||
"denoVersion": self.runtime_version,
|
||||
"location": self.location,
|
||||
"noColor": self.no_color,
|
||||
"isTty": self.is_tty,
|
||||
"tsVersion": self.ts_version,
|
||||
"unstableFlag": self.unstable,
|
||||
// Web worker only
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue