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