-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.ts
executable file
·35 lines (32 loc) · 986 Bytes
/
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
#!/usr/bin/env node
import colors from "colors";
import { program } from "commander";
import figlet from "figlet";
import { configurePackage } from "./helpers/utilis/packageConfiguration.js";
import { packageDescription } from "./helpers/utilis/packageDescription.js";
import { packageGenerator } from "./helpers/utilis/packageGenerator.js";
import { InitMethaneCLI } from "./helpers/utilis/packageInit.js";
import { listAllConfig } from "./helpers/utilis/packageListConfiguration.js";
figlet.text(
"Methane",
{
font: "Big",
horizontalLayout: "default",
verticalLayout: "default",
width: 150,
whitespaceBreak: true,
},
function (err, data: any) {
if (err) {
console.log("Figlet error:", colors.red(err.toString()));
return;
}
console.log(colors.bold(colors.rainbow(data)));
InitMethaneCLI();
packageDescription();
configurePackage();
packageGenerator();
listAllConfig();
program.parse(process.argv);
}
);