Skip to content

PluginAppDefinition

Элементы расширения приложения.

Свойства

НаименованиеТипОбязательное
commandsRuniumCommandConstructor[]Нет

Описание свойств

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],
}