Тема
PluginAppDefinition
Элементы расширения приложения.
Свойства
| Наименование | Тип | Обязательное |
|---|---|---|
| commands | RuniumCommandConstructor[] | Нет |
Описание свойств
commands
Тип: RuniumCommandConstructor[]
Обязательное: Нет
Массив конструкторов пользовательских команд.
Пример:
typescript
class SomeCustomCommand extends runium.class.RuniumTask {
protected config() {
this.command.name("some-command").description("Some custom command")
}
protected async handle() {
console.log("Executing some custom command")
}
}
const appDefinition: PluginAppDefinition = {
commands: [SomeCustomCommand],
}