refactor: clean up imports and improve function formatting

- Reordered and grouped import statements for better readability in client.ts, index.ts, and auth.ts.
- Updated the readAuthConfig function to prioritize DOKPLOY_API_KEY over DOKPLOY_AUTH_TOKEN.
- Enhanced formatting of apiPost and apiGet functions for improved clarity and consistency.
This commit is contained in:
Mauricio Siu
2026-04-15 18:41:20 -06:00
parent 5b02a22e21
commit 70f542990d
3 changed files with 36 additions and 13 deletions

View File

@@ -1,16 +1,23 @@
#!/usr/bin/env node
import { program } from "commander";
import chalk from "chalk";
import { program } from "commander";
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" };
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);
.description(pkg.description)
.action(() => {
program.help();
});
registerAuthCommand(program);
registerGeneratedCommands(program);