(stdout: string)
| 84 | ran.push(args.slice(0, 3).join(" ")); |
| 85 | const [, , sub, id] = args; |
| 86 | const ok = (stdout: string) => ({ code: 0, stdout, stderr: "" }); |
| 87 | if (sub === "create") { held.add("sub_new"); return ok("sub_new\n"); } |
| 88 | if (sub === "list") return ok(JSON.stringify([...held].map(held => ({ id: held })))); |
| 89 | if (sub === "delete") { held.delete(id!); return ok(""); } |