Upgrade Command Options
This patch will migrate the commands options to the new structure.
npx @adonisjs/upgrade-kit@latest upgrade-command-options
pnpm dlx @adonisjs/upgrade-kit@latest upgrade-command-options
With V5, the command options were defined as follows:
export default class TestCommand extends BaseCommand {
public static settings = {
loadApp: false,
stayAlive: false,
}
}
With V6, the options are defined like this:
export default class TestCommand extends BaseCommand {
static options: CommandOptions = {
loadApp: false,
staysAlive: false,
}
}
The patch will therefore update the options of all commands defined in commands
directory of your application.