-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.ts
38 lines (32 loc) · 1.03 KB
/
index.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
38
#!/usr/bin/env node
import { white } from "kolorist";
import { program } from "commander";
import { parseCommandOptions } from "./src/utils/parseCommandOptions.js";
program
.name("")
.description("")
.option("-e, --example [value]", "specify the example to generate")
.option("-ver, --verbose", "sdd error level logging verbosity");
program.parse();
console.log(
white(`
### ######## ######## ####### ######
## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ##
## ## ######## ## ## ## ######
######### ## ## ## ## ##
## ## ## ## ## ## ## ##
## ## ## ## ####### ######
`)
);
console.log("Welcome to the create-aptos-dapp wizard 🌐");
async function main() {
const options = {
example: program.opts().example,
verbose: program.opts().verbose,
};
await parseCommandOptions(options);
}
main().catch((e) => {
console.error(e);
});