mirror of
https://github.com/Dokploy/cli.git
synced 2026-07-07 15:05:21 +02:00
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:
13
src/index.ts
13
src/index.ts
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user