mirror of
https://github.com/Dokploy/cli.git
synced 2026-06-26 17:45:38 +02:00
remove
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
import {Args, Command, Flags} from '@oclif/core'
|
||||
|
||||
export default class CheckServer extends Command {
|
||||
static override args = {
|
||||
file: Args.string({description: 'file to read'}),
|
||||
}
|
||||
|
||||
static override description = 'describe the command here'
|
||||
|
||||
static override examples = [
|
||||
'<%= config.bin %> <%= command.id %>',
|
||||
]
|
||||
|
||||
static override flags = {
|
||||
// flag with no value (-f, --force)
|
||||
force: Flags.boolean({char: 'f'}),
|
||||
// flag with a value (-n, --name=VALUE)
|
||||
name: Flags.string({char: 'n', description: 'name to print'}),
|
||||
}
|
||||
|
||||
public async run(): Promise<void> {
|
||||
const {args, flags} = await this.parse(CheckServer)
|
||||
|
||||
const name = flags.name ?? 'world'
|
||||
this.log(`hello ${name} from /Users/mauricio/Documents/Github/Personal/cli/src/commands/check-server.ts`)
|
||||
if (args.file && flags.force) {
|
||||
this.log(`you input --force and --file: ${args.file}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user