prepared dot files
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
import { parseArgs } from "node:util";
|
||||
import { install } from "./install.js";
|
||||
import { update } from "./update.js";
|
||||
import { remove } from "./remove.js";
|
||||
|
||||
const { positionals } = parseArgs({ allowPositionals: true });
|
||||
const [command] = positionals;
|
||||
|
||||
switch (command) {
|
||||
case "install":
|
||||
await install();
|
||||
break;
|
||||
case "update":
|
||||
await update();
|
||||
break;
|
||||
case "remove":
|
||||
await remove();
|
||||
break;
|
||||
default:
|
||||
console.error("Usage: dotfiles <install|update|remove>");
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user