style: format cli files
This commit is contained in:
@@ -180,7 +180,10 @@ async function ensureDevWorkspace(dir: string) {
|
||||
path.join(resolvedDir, "TOOLS.md"),
|
||||
DEV_TOOLS_TEMPLATE,
|
||||
);
|
||||
await writeFileIfMissing(path.join(resolvedDir, "USER.md"), DEV_USER_TEMPLATE);
|
||||
await writeFileIfMissing(
|
||||
path.join(resolvedDir, "USER.md"),
|
||||
DEV_USER_TEMPLATE,
|
||||
);
|
||||
await writeFileIfMissing(
|
||||
path.join(resolvedDir, "HEARTBEAT.md"),
|
||||
DEV_HEARTBEAT_TEMPLATE,
|
||||
|
||||
@@ -23,12 +23,7 @@ describe("parseCliProfileArgs", () => {
|
||||
});
|
||||
|
||||
it("still accepts global --dev before subcommand", () => {
|
||||
const res = parseCliProfileArgs([
|
||||
"node",
|
||||
"clawdbot",
|
||||
"--dev",
|
||||
"gateway",
|
||||
]);
|
||||
const res = parseCliProfileArgs(["node", "clawdbot", "--dev", "gateway"]);
|
||||
if (!res.ok) throw new Error(res.error);
|
||||
expect(res.profile).toBe("dev");
|
||||
expect(res.argv).toEqual(["node", "clawdbot", "gateway"]);
|
||||
|
||||
Reference in New Issue
Block a user