-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert `Process`, `Scheduler` and `Console` to the new error reporting API and restore coloring
- Loading branch information
Showing
22 changed files
with
609 additions
and
646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,8 @@ | ||
open! Stdune | ||
|
||
val colorize : key:string -> string -> string | ||
|
||
(** [Env.initial] extended with variables to force a few tools to | ||
print colors *) | ||
val setup_env_for_colors : Env.t -> Env.t | ||
|
||
(** Strip colors in [not (Lazy.force Ansi_color.stderr_supports_colors)] *) | ||
val strip_colors_for_stderr : string -> string | ||
|
||
(** Enable the interpretation of color tags for [Format.err_formatter] *) | ||
val setup_err_formatter_colors : unit -> unit | ||
|
||
type styles | ||
|
||
val output_filename : styles | ||
|
||
val command_success : styles | ||
|
||
val command_error : styles | ||
|
||
val apply_string : styles -> string -> string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.