blob: c8887669f8a074340531fe5bf08885e686ddedb1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import type { Command } from "commander";
import { initConfig } from "../utils/config.js";
export const config = (program: Command) => {
program
.command("config")
.argument("<action>")
.action(async (action: string) => {
switch (action) {
case "init":
await initConfig();
break;
default:
console.log(
"No valid action. These are valid: init. More comming soon...",
);
}
});
};
|