CliCommandsModule · packages/server/src/cli/commands/config.ts:208

ConfigCommand

component

penguin config, as a contribution to the CLI's CliCommandsModule.commands from this package; the CLI's boot collects it.

API

@Component({
  contributes: {
    "CliCommandsModule.commands": [
      {
        id: "cli.config",
        key: "config",
        summary: {
          en: "Manage Project configuration",
          zh: "管理 Project 配置",
        },
      },
    ],
  },
})
export class ConfigCommand {
  @Bind("cli.config") command!: CliCommandCode<Messages>;
  setup();
}

Dependencies & Wiring

Extracted from class decorators
@Bindbinds (1)
command → cli.config: CliCommandCode<Messages>

Contributes

{
  "CliCommandsModule.commands": [
    {
      "id": "cli.config",
      "key": "config",
      "summary": {
        "en": "Manage Project configuration",
        "zh": "管理 Project 配置"
      }
    }
  ]
}

Target slots: CliCommandsModule.commands

Methods (1)

setup

setup()