diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-11 12:01:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 12:01:56 +0100 |
commit | a3bfbcceade3d359f677106399562b461b4af01a (patch) | |
tree | 93f6fcc56d98bbc0f71f5b5782381f672895f634 /cli/js/colors.ts | |
parent | 701ce9b3342647cf01cb23c4fc28bc99ce0aa8c1 (diff) |
refactor: rewrite deno test, add Deno.test() (#3865)
* rewrite test runner in Rust
* migrate "test" and "runTests" functions from std to "Deno" namespace
* use "Deno.test()" to run internal JS unit tests
* remove std downloads for Deno subcommands
Diffstat (limited to 'cli/js/colors.ts')
-rw-r--r-- | cli/js/colors.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cli/js/colors.ts b/cli/js/colors.ts index 21539c83e..372e90ba5 100644 --- a/cli/js/colors.ts +++ b/cli/js/colors.ts @@ -31,6 +31,10 @@ export function bold(str: string): string { return run(str, code(1, 22)); } +export function italic(str: string): string { + return run(str, code(3, 23)); +} + export function yellow(str: string): string { return run(str, code(33, 39)); } @@ -38,3 +42,23 @@ export function yellow(str: string): string { export function cyan(str: string): string { return run(str, code(36, 39)); } + +export function red(str: string): string { + return run(str, code(31, 39)); +} + +export function green(str: string): string { + return run(str, code(32, 39)); +} + +export function bgRed(str: string): string { + return run(str, code(41, 49)); +} + +export function white(str: string): string { + return run(str, code(37, 39)); +} + +export function gray(str: string): string { + return run(str, code(90, 39)); +} |