feat(FN-4629): complete Step 3 — add worktrunk help examples

Fusion-Task-Id: FN-4629
Fusion-Task-Lineage: b8775bc8-4c04-4259-8cad-f5a3ba0c42e4
This commit is contained in:
Fusion (runfusion.ai)
2026-05-15 22:55:55 -07:00
committed by gsxdsm
parent b65717f1bf
commit e189599365
2 changed files with 9 additions and 0 deletions

View File

@@ -289,6 +289,13 @@ describe("bin command routing and fallbacks", () => {
expect(logSpy).toHaveBeenCalledWith(expect.stringContaining("fn — AI-orchestrated task board"));
});
it("includes worktrunk settings keys in help output", async () => {
await expect(runBin(["--help"])).rejects.toThrow("process.exit:0");
const output = logSpy.mock.calls.map((args) => args.join(" ")).join("\n");
expect(output).toContain("worktrunk.enabled");
expect(output).toContain("worktrunk.onFailure");
});
it("launches dashboard when no args are provided", async () => {
commandMocks.runDashboard.mockResolvedValue({ dispose: vi.fn() });
await runBin([]);

View File

@@ -327,6 +327,8 @@ Usage:
fn settings set <key> <value> Update a configuration setting
fn settings set defaultNodeId <node-id>
fn settings set unavailableNodePolicy <block|fallback-local>
fn settings set worktrunk.enabled <true|false>
fn settings set worktrunk.onFailure <fail|fallback-native>
fn settings export [opts] Export settings to a JSON file
fn settings import <file> [opts] Import settings from a JSON file