refactor(cli): split commands/bill.ts into bill/{context,approve,search,flow,related,meta,index}.ts
The five closures that captured corp/client/confirmation state move into a per-invocation createBillActionContext factory; case bodies become ctx-taking handlers grouped by concern (approval write actions, list/get, flow/risk/budget, refs/relations/attachments/download, schema/link/spec). index.ts keeps the original switch semantics. No behavior change: tsc clean, 316 tests pass.
This commit is contained in:
1 parent
6cb05ebc37
commit
8c6ee6ca89
11 files changed
+865
-755
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import { handleBillCommand } from "./commands/bill.js";
|
||||
import { handleBillCommand } from "./commands/bill/index.js";
|
||||
import type { CliRuntime } from "./types.js";
|
||||
|
||||
const runtime: CliRuntime = {
|
||||
|
||||
Reference in new issue
Block a user