refactor(cli): reorganize commands — add test, alias orchestrate to o, extract shared options

- Add `test` / `t` command mirroring unity-test-runner (EditMode, PlayMode, All,
  code coverage, test filters)
- Add `o` short alias for `orchestrate` command
- Extract shared option builders (project, docker, android, orchestrator) to
  eliminate duplication across build/test/orchestrate
- Make `build` local-only — remove --provider-strategy (use `orchestrate` for
  remote builds)
- Absorb `cache` command into `status` (--cache-dir flag) — remove standalone
  cache command that was half-implemented
- Fix `list-worfklow` typo in internal CLI → `list-workflow`
- Add test-related fields to CliArguments input mapper
- Update all unit and integration tests (64 passing)

Command structure is now:
  game-ci build          Local build (Docker/macOS)
  game-ci test / t       Run Unity tests
  game-ci orchestrate / o  Remote build (AWS/K8s/etc)
  game-ci activate       License validation
  game-ci status         Project info + cache status
  game-ci version        Version info
  game-ci update         Self-update

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
frostebite
2026-03-07 00:16:52 +00:00
parent 664cffa80c
commit f0aca9e727
13 changed files with 632 additions and 582 deletions
Generated Vendored
+3 -3
View File
@@ -678,7 +678,7 @@ class Cli {
orchestrator_logger_1.default.log(JSON.stringify(result, undefined, 4));
return result.map((x) => x.Name);
}
static async ListWorfklow() {
static async ListWorkflow() {
const buildParameter = await __1.BuildParameters.create();
await __1.Orchestrator.setup(buildParameter);
return (await __1.Orchestrator.Provider.listWorkflow()).map((x) => x.Name);
@@ -708,8 +708,8 @@ __decorate([
(0, cli_functions_repository_1.CliFunction)(`list-resources`, `lists active resources`)
], Cli, "ListResources", null);
__decorate([
(0, cli_functions_repository_1.CliFunction)(`list-worfklow`, `lists running workflows`)
], Cli, "ListWorfklow", null);
(0, cli_functions_repository_1.CliFunction)(`list-workflow`, `lists running workflows`)
], Cli, "ListWorkflow", null);
__decorate([
(0, cli_functions_repository_1.CliFunction)(`watch`, `follows logs of a running workflow`)
], Cli, "Watch", null);
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long