-
Notifications
You must be signed in to change notification settings - Fork 6
/
mod.ts
37 lines (33 loc) · 749 Bytes
/
mod.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* Drake APIs. */
export { env } from "./lib/env.ts";
export type { EnvValue } from "./lib/env.ts";
export { desc, execute, run, task } from "./lib/registry.ts";
export type { Action, Task } from "./lib/tasks.ts";
export {
abort,
debug,
DrakeError,
glob,
log,
makeDir,
quote,
readFile,
remove,
sh,
shCapture,
stat,
updateFile,
vers,
writeFile,
} from "./lib/utils.ts";
export type { ShCaptureOpts, ShOpts, ShOutput } from "./lib/utils.ts";
import { Env, env } from "./lib/env.ts";
import { help } from "./lib/help.ts";
import { vers } from "./lib/utils.ts";
env("--abort-exits", true);
(env() as Env).parseArgs([...Deno.args]);
if (env("--help")) {
help();
} else if (env("--version")) {
console.log(vers());
}