CliCommandsModule · packages/cli/src/commands/auth.ts:279

AuthCommand

component

penguin auth.

API

@Component({
  contributes: {
    "CliCommandsModule.commands": [
      {
        id: "cli.auth",
        key: "auth",
        summary: {
          en: "Sign in to a PenguinHarness server from the terminal",
          zh: "在终端里登录 PenguinHarness 服务",
        },
      },
    ],
  },
})
export class AuthCommand {
  @Bind("cli.auth") command!: CliCommandCode<Messages>;
  setup();
}

Dependencies & Wiring

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

Contributes

{
  "CliCommandsModule.commands": [
    {
      "id": "cli.auth",
      "key": "auth",
      "summary": {
        "en": "Sign in to a PenguinHarness server from the terminal",
        "zh": "在终端里登录 PenguinHarness 服务"
      }
    }
  ]
}

Target slots: CliCommandsModule.commands

Methods (1)

setup

setup()