mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
Add color to error formatting (#746)
* Add color to error formatting * Apply suggestions from code review Co-authored-by: Daniel Chao <daniel.h.chao@gmail.com> * Address reviewer comments * Apply suggestions from code review Co-authored-by: Daniel Chao <daniel.h.chao@gmail.com> * Define style choices as operations on formatter (abandon semantic API) * Adjust margin styling * Review feedback * Documentation nits --------- Co-authored-by: Daniel Chao <daniel.h.chao@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e217cfcd6f
commit
03462fefae
@@ -67,6 +67,16 @@ allowedModules: Listing<String(isRegex)>?
|
||||
/// ```
|
||||
allowedResources: Listing<String(isRegex)>?
|
||||
|
||||
/// When to format messages with ANSI color codes.
|
||||
///
|
||||
/// Possible values:
|
||||
///
|
||||
/// - `"never"`: Never format
|
||||
/// - `"auto"`: Format if the process' stdin, stdout, or stderr are connected to a console.
|
||||
/// - `"always"`: Always format
|
||||
@Since { version = "0.27.0" }
|
||||
color: ("never"|"auto"|"always")?
|
||||
|
||||
/// Disables the file system cache for `package:` modules.
|
||||
///
|
||||
/// When caching is disabled, packages are loaded over the network and stored in memory.
|
||||
|
||||
Reference in New Issue
Block a user