Skip to content

cli-1.1.12修改建议 #344

Open
Open
@valefor

Description

@valefor

自己写CI脚本需要用到非交互命令行模式

查看热更版本列表的时候会死循环:
pushy versions --no-interactive

建议修改:

async function listVersions(appId) {
  let offset = 0;
  

> if (NO_INTERACTIVE) {
>     await showVersion(appId, offset);
>   } else {

    while (true) {
      await showVersion(appId, offset);
      const cmd = await question('page Up/page Down/Begin/Quit(U/D/B/Q)');
      switch (cmd.toLowerCase()) {
        case 'u': offset = Math.max(0, offset - 10); break;
        case 'd': offset += 10; break;
        case 'b': offset = 0; break;
        case 'q': return;
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions