mirror of
https://github.com/Dokploy/cli.git
synced 2026-07-18 20:35:23 +02:00
refactor: migrate to biome and update CLI structure
- Removed ESLint configuration and ignore files in favor of Biome for linting. - Introduced biome.json for configuration and updated package.json to reflect new dependencies. - Added OpenAPI specification for Dokploy API and generated CLI commands from it. - Refactored CLI entry point to use Commander instead of Oclif. - Implemented new authentication command and removed deprecated commands. - Updated TypeScript configuration and added build scripts for improved development workflow. - Cleaned up unused files and commands to streamline the codebase.
This commit is contained in:
22
src/index.ts
22
src/index.ts
@@ -1 +1,21 @@
|
||||
export {run} from '@oclif/core'
|
||||
#!/usr/bin/env node
|
||||
|
||||
import { program } from "commander";
|
||||
import chalk from "chalk";
|
||||
import { registerAuthCommand } from "./commands/auth.js";
|
||||
import { registerGeneratedCommands } from "./generated/commands.js";
|
||||
|
||||
const pkg = { name: "dokploy", version: "0.3.0", description: "Dokploy CLI - Manage your Dokploy server" };
|
||||
|
||||
program
|
||||
.name(pkg.name)
|
||||
.version(pkg.version)
|
||||
.description(pkg.description);
|
||||
|
||||
registerAuthCommand(program);
|
||||
registerGeneratedCommands(program);
|
||||
|
||||
program.parseAsync(process.argv).catch((err) => {
|
||||
console.error(chalk.red(err.message));
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user