Skip to content

Commit 8ee9ea3

Browse files
committed
add bindings to std/fmt
1 parent 4e842fb commit 8ee9ea3

File tree

3 files changed

+148
-0
lines changed

3 files changed

+148
-0
lines changed

src/RescriptDeno_Std.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
module Fmt = RescriptDeno_Std_Fmt
12
module Stream = RescriptDeno_Std_Stream

src/RescriptDeno_Std_Fmt.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module Color = RescriptDeno_Std_Fmt_Color

src/RescriptDeno_Std_Fmt_Color.res

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
type rgb = {
2+
r: int,
3+
g: int,
4+
b: int,
5+
}
6+
7+
@module("https://deno.land/std/fmt/colors.ts")
8+
external setEnabled: bool => unit = "setColorEnabled"
9+
10+
@module("https://deno.land/std/fmt/colors.ts")
11+
external getEnabled: unit => bool = "getColorEnabled"
12+
13+
@module("https://deno.land/std/fmt/colors.ts")
14+
external reset: string => string = "reset"
15+
16+
@module("https://deno.land/std/fmt/colors.ts")
17+
external dim: string => string = "dim"
18+
19+
@module("https://deno.land/std/fmt/colors.ts")
20+
external italic: string => string = "italic"
21+
22+
@module("https://deno.land/std/fmt/colors.ts")
23+
external underline: string => string = "underline"
24+
25+
@module("https://deno.land/std/fmt/colors.ts")
26+
external inverse: string => string = "inverse"
27+
28+
@module("https://deno.land/std/fmt/colors.ts")
29+
external hidden: string => string = "hidden"
30+
31+
@module("https://deno.land/std/fmt/colors.ts")
32+
external strikethrough: string => string = "strikethrough"
33+
34+
@module("https://deno.land/std/fmt/colors.ts")
35+
external black: string => string = "black"
36+
37+
@module("https://deno.land/std/fmt/colors.ts")
38+
external red: string => string = "red"
39+
40+
@module("https://deno.land/std/fmt/colors.ts")
41+
external green: string => string = "green"
42+
43+
@module("https://deno.land/std/fmt/colors.ts")
44+
external yellow: string => string = "yellow"
45+
46+
@module("https://deno.land/std/fmt/colors.ts")
47+
external blue: string => string = "blue"
48+
49+
@module("https://deno.land/std/fmt/colors.ts")
50+
external magenta: string => string = "magenta"
51+
52+
@module("https://deno.land/std/fmt/colors.ts")
53+
external cyan: string => string = "cyan"
54+
55+
@module("https://deno.land/std/fmt/colors.ts")
56+
external white: string => string = "white"
57+
58+
@module("https://deno.land/std/fmt/colors.ts")
59+
external gray: string => string = "gray"
60+
61+
@module("https://deno.land/std/fmt/colors.ts")
62+
external brightBlack: string => string = "brightBlack"
63+
64+
@module("https://deno.land/std/fmt/colors.ts")
65+
external brightRed: string => string = "brightRed"
66+
67+
@module("https://deno.land/std/fmt/colors.ts")
68+
external brightGreen: string => string = "brightGreen"
69+
70+
@module("https://deno.land/std/fmt/colors.ts")
71+
external brightYellow: string => string = "brightYellow"
72+
73+
@module("https://deno.land/std/fmt/colors.ts")
74+
external brightBlue: string => string = "brightBlue"
75+
76+
@module("https://deno.land/std/fmt/colors.ts")
77+
external brightMagenta: string => string = "brightMagenta"
78+
79+
@module("https://deno.land/std/fmt/colors.ts")
80+
external brightCyan: string => string = "brightCyan"
81+
82+
@module("https://deno.land/std/fmt/colors.ts")
83+
external brightWhite: string => string = "brightWhite"
84+
85+
@module("https://deno.land/std/fmt/colors.ts")
86+
external bgBlack: string => string = "bgBlack"
87+
88+
@module("https://deno.land/std/fmt/colors.ts")
89+
external bgRed: string => string = "bgRed"
90+
91+
@module("https://deno.land/std/fmt/colors.ts")
92+
external bgGreen: string => string = "bgGreen"
93+
94+
@module("https://deno.land/std/fmt/colors.ts")
95+
external bgYellow: string => string = "bgYellow"
96+
97+
@module("https://deno.land/std/fmt/colors.ts")
98+
external bgBlue: string => string = "bgBlue"
99+
100+
@module("https://deno.land/std/fmt/colors.ts")
101+
external bgMagenta: string => string = "bgMagenta"
102+
103+
@module("https://deno.land/std/fmt/colors.ts")
104+
external bgCyan: string => string = "bgCyan"
105+
106+
@module("https://deno.land/std/fmt/colors.ts")
107+
external bgWhite: string => string = "bgWhite"
108+
109+
@module("https://deno.land/std/fmt/colors.ts")
110+
external bgBrightBlack: string => string = "bgBrightBlack"
111+
112+
@module("https://deno.land/std/fmt/colors.ts")
113+
external bgBrightRed: string => string = "bgBrightRed"
114+
115+
@module("https://deno.land/std/fmt/colors.ts")
116+
external bgBrightGreen: string => string = "bgBrightGreen"
117+
118+
@module("https://deno.land/std/fmt/colors.ts")
119+
external bgBrightYellow: string => string = "bgBrightYellow"
120+
121+
@module("https://deno.land/std/fmt/colors.ts")
122+
external bgBrightBlue: string => string = "bgBrightBlue"
123+
124+
@module("https://deno.land/std/fmt/colors.ts")
125+
external bgBrightMagenta: string => string = "bgBrightMagenta"
126+
127+
@module("https://deno.land/std/fmt/colors.ts")
128+
external bgBrightCyan: string => string = "bgBrightCyan"
129+
130+
@module("https://deno.land/std/fmt/colors.ts")
131+
external bgBrightWhite: string => string = "bgBrightWhite"
132+
133+
@module("https://deno.land/std/fmt/colors.ts")
134+
external rgb8: (string, int) => string = "rgb8"
135+
136+
@module("https://deno.land/std/fmt/colors.ts")
137+
external bgRgb8: (string, int) => string = "bgRgb8"
138+
139+
@module("https://deno.land/std/fmt/colors.ts")
140+
external rgb24: (string, rgb) => string = "rgb24"
141+
142+
@module("https://deno.land/std/fmt/colors.ts")
143+
external bgRgb24: (string, rgb) => string = "bgRgb24"
144+
145+
@module("https://deno.land/std/fmt/colors.ts")
146+
external stripColor: string => string = "stripColor"

0 commit comments

Comments
 (0)