INNER CODE UNIT · TypeScript

RuntimeListCommand

hypermodeinc/modus · cli/src/commands/runtime/list/index.ts:11

export default class RuntimeListCommand extends BaseCommand {
  static args = {};
  static description = "List installed Modus runtimes";
  static examples = ["modus runtime list"];
  static flags = {};

  async run(): Promise<void> {
    const { flags } = await this.parse(RuntimeListCommand);

    if (!flags["no-logo"]) {
      this.log(getHeader(this.config.version));
    }

    await this.showInstalledRuntimes();
  }

  private async showInstalledRuntimes(): Promise<void> {
    const versions = await vi.getInstalledRuntimeVersions();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…