mirror of
https://github.com/Dokploy/cli.git
synced 2026-06-15 20:25:22 +02:00
clean files
This commit is contained in:
@@ -1,29 +0,0 @@
|
|||||||
import { Command, Flags } from "@oclif/core";
|
|
||||||
|
|
||||||
export default class Greet extends Command {
|
|
||||||
static args = {
|
|
||||||
// Puedes agregar argumentos adicionales si lo necesitas
|
|
||||||
};
|
|
||||||
|
|
||||||
static description = "Greet the user with a message";
|
|
||||||
|
|
||||||
static examples = [
|
|
||||||
`<%= config.bin %> <%= command.id %> --name=Mau
|
|
||||||
hello Mau!
|
|
||||||
`,
|
|
||||||
];
|
|
||||||
|
|
||||||
static flags = {
|
|
||||||
name: Flags.string({
|
|
||||||
char: "n",
|
|
||||||
description: "name to greet",
|
|
||||||
required: false,
|
|
||||||
}),
|
|
||||||
};
|
|
||||||
|
|
||||||
async run(): Promise<void> {
|
|
||||||
const { flags } = await this.parse(Greet);
|
|
||||||
const name = flags.name ?? "user";
|
|
||||||
this.log(`hello ${name}!`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
import { Args, Command, Flags } from "@oclif/core";
|
|
||||||
|
|
||||||
export default class Hello extends Command {
|
|
||||||
static args = {
|
|
||||||
person: Args.string({
|
|
||||||
description: "Person to say hello to",
|
|
||||||
required: true,
|
|
||||||
}),
|
|
||||||
};
|
|
||||||
|
|
||||||
static description = "Say hello";
|
|
||||||
|
|
||||||
static examples = [
|
|
||||||
`<%= config.bin %> <%= command.id %> friend --from oclif
|
|
||||||
hello friend from oclif! (./src/commands/hello/index.ts)
|
|
||||||
`,
|
|
||||||
];
|
|
||||||
|
|
||||||
static flags = {
|
|
||||||
from: Flags.string({
|
|
||||||
char: "f",
|
|
||||||
description: "Who is saying hello",
|
|
||||||
required: true,
|
|
||||||
}),
|
|
||||||
};
|
|
||||||
|
|
||||||
async run(): Promise<void> {
|
|
||||||
const { args, flags } = await this.parse(Hello);
|
|
||||||
|
|
||||||
this.log(
|
|
||||||
`hello ${args.person} from ${flags.from}! (./src/commands/hello/index.ts)`,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
import {Command} from '@oclif/core'
|
|
||||||
|
|
||||||
export default class World extends Command {
|
|
||||||
static args = {}
|
|
||||||
|
|
||||||
static description = 'Say hello world'
|
|
||||||
|
|
||||||
static examples = [
|
|
||||||
`<%= config.bin %> <%= command.id %>
|
|
||||||
hello world! (./src/commands/hello/world.ts)
|
|
||||||
`,
|
|
||||||
]
|
|
||||||
|
|
||||||
static flags = {}
|
|
||||||
|
|
||||||
async run(): Promise<void> {
|
|
||||||
this.log('hello world! (./src/commands/hello/world.ts)')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -54,7 +54,7 @@ export default class ProjectInfo extends Command {
|
|||||||
|
|
||||||
const selectedProjectId = answers.selectedProject;
|
const selectedProjectId = answers.selectedProject;
|
||||||
|
|
||||||
await await this.showProjectInfo(auth, selectedProjectId);
|
await this.showProjectInfo(auth, selectedProjectId);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// @ts-expect-error hola
|
// @ts-expect-error hola
|
||||||
this.error(chalk.red(`Failed to fetch project list: ${error.message}`));
|
this.error(chalk.red(`Failed to fetch project list: ${error.message}`));
|
||||||
|
|||||||
Reference in New Issue
Block a user