Workspace command decorators (#19397)
# Introduction Migrating the workspace commands to the decorator version + timestamp listing as for the instance commands We've now been able to remove the upgrade command abstraction where we needed to import all modules and order them Now they're dynamically retrieved at upgrade runtime, sorted by timestamp ## Instance and workspace commands name The name is computed from the command metadata `version` `className` and `timestamp` we have a duplicate validation at module init from the unified registry
This commit is contained in:
@@ -20,7 +20,7 @@ type GenerateInstanceCommandOptions = {
|
||||
@Command({
|
||||
name: 'generate:instance-command',
|
||||
description:
|
||||
'Generate an instance command with @RegisteredInstanceMigration decorator for the latest supported version',
|
||||
'Generate an instance command with @RegisteredInstanceCommand decorator for the latest supported version',
|
||||
})
|
||||
export class GenerateInstanceCommandCommand extends CommandRunner {
|
||||
private readonly logger = new Logger(GenerateInstanceCommandCommand.name);
|
||||
|
||||
Reference in New Issue
Block a user