feat: Initial project structure
This commit is contained in:
23
src/cli.ts
Normal file
23
src/cli.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env node
|
||||
import { Command } from "commander";
|
||||
import pkg from "../package.json" with { type: "json" };
|
||||
|
||||
const program = new Command();
|
||||
|
||||
program
|
||||
.name("wpop")
|
||||
.description("WordPress operations CLI for Websimple projects.")
|
||||
.version(pkg.version)
|
||||
.option("--dry-run", "show what would happen without making changes")
|
||||
.option("--json", "output machine-readable JSON")
|
||||
.option("--yes", "skip confirmation prompts")
|
||||
.option("--verbose", "enable verbose logging");
|
||||
|
||||
program
|
||||
.command("deploy")
|
||||
.description("Deploy a WordPress project")
|
||||
.action(() => {
|
||||
throw new Error("Not implemented yet.");
|
||||
});
|
||||
|
||||
program.parse();
|
||||
Reference in New Issue
Block a user