Skip to content

Commit

Permalink
refactor: allow unknownFlags in configure command
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Oct 25, 2023
1 parent 7179a48 commit 6ef6e04
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions commands/configure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,25 @@
import { slash } from '@poppinss/utils'
import { installPackage, detectPackageManager } from '@antfu/install-pkg'
import { args, BaseCommand, flags } from '../modules/ace/main.js'
import { CommandOptions } from '../types/ace.js'

/**
* The configure command is used to configure packages after installation
*/
export default class Configure extends BaseCommand {
static commandName = 'configure'
static description = 'Configure a package post installation'
static options: CommandOptions = {
allowUnknownFlags: true,
}

get parsedFlags() {
return this.parsed.flags
}

get parsedArgs() {
return this.parsed._
}

@args.string({ description: 'Package name' })
declare name: string
Expand Down

0 comments on commit 6ef6e04

Please sign in to comment.