diff options
| author | Leo Goetz <dev@leogtz.de> | 2026-05-08 15:48:37 +0200 |
|---|---|---|
| committer | Leo Goetz <dev@leogtz.de> | 2026-05-08 15:48:37 +0200 |
| commit | c3cb0ca317a52a740bf9625ca9df43f5c2306548 (patch) | |
| tree | aa8877dc2d651f16d23a629c4054043cae8be156 /src/commands/config.ts | |
inital commit
Diffstat (limited to 'src/commands/config.ts')
| -rw-r--r-- | src/commands/config.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/commands/config.ts b/src/commands/config.ts new file mode 100644 index 0000000..c888766 --- /dev/null +++ b/src/commands/config.ts @@ -0,0 +1,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...", + ); + } + }); +}; |
