CliCommandsModule · packages/server/src/cli/commands/project.ts:46

ProjectCommand

component

penguin project, as a contribution to the CLI's CliCommandsModule.commands from this package (the server resource API's client); the CLI's boot collects it.

API

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

Dependencies & Wiring

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

Contributes

{
  "CliCommandsModule.commands": [
    {
      "id": "cli.project",
      "key": "project",
      "summary": {
        "en": "Manage projects",
        "zh": "管理 Project"
      }
    }
  ]
}

Target slots: CliCommandsModule.commands

Methods (1)

setup

setup()