diff --git a/scripts/src/help.ts b/scripts/src/help.ts index 83975357..ac79a807 100644 --- a/scripts/src/help.ts +++ b/scripts/src/help.ts @@ -311,9 +311,9 @@ function sshDownloadHelp(): unknown { }, examples: { host: "trans D601:/tmp download /tmp/trace.json ./trace.json", - k3sWorkload: "trans NC01:k3s:hwlab-v03:deployment:hwlab-cloud-api download /tmp/trace.json ./trace.json", + k3sWorkload: "trans NC01:k3s:hwlab-v03:hwlab-cloud-api:hwlab-cloud-api download /tmp/trace.json ./trace.json", windowsDrive: "trans D601:win download 'D:\\tmp\\trace.json' ./trace.json", - explicitWorktree: `UNIDESK_TRANS_REPO_ROOT=${repoRoot} trans NC01:k3s:hwlab-v03:deployment:hwlab-cloud-api download /tmp/trace.json ./trace.json`, + explicitWorktree: `UNIDESK_TRANS_REPO_ROOT=${repoRoot} trans NC01:k3s:hwlab-v03:hwlab-cloud-api:hwlab-cloud-api download /tmp/trace.json ./trace.json`, }, notes: [ "A k3s download requires a workload route; the control-plane-only :k3s route cannot name a remote file inside a workload.", diff --git a/scripts/src/ssh-help.test.ts b/scripts/src/ssh-help.test.ts index 2aba72d8..d0b8cbd1 100644 --- a/scripts/src/ssh-help.test.ts +++ b/scripts/src/ssh-help.test.ts @@ -36,8 +36,13 @@ describe("ssh download scoped help", () => { expect(scoped.contract.transport).toBe("host.ssh.tcp-pool"); expect(scoped.contract.verification.automatic).toBe(true); expect(scoped.examples.host).toContain("download /tmp/trace.json ./trace.json"); - expect(scoped.examples.k3sWorkload).toContain(":k3s:"); + expect(scoped.examples.k3sWorkload).toBe( + "trans NC01:k3s:hwlab-v03:hwlab-cloud-api:hwlab-cloud-api download /tmp/trace.json ./trace.json", + ); expect(scoped.examples.windowsDrive).toContain("D:\\tmp\\trace.json"); + expect(scoped.examples.explicitWorktree).toBe( + `UNIDESK_TRANS_REPO_ROOT=${repoRoot} trans NC01:k3s:hwlab-v03:hwlab-cloud-api:hwlab-cloud-api download /tmp/trace.json ./trace.json`, + ); }); test("renders the original trans command without stdout dump fallback", () => {