mirror of
https://github.com/mvschwarz/openrig.git
synced 2026-10-02 00:27:21 +08:00
docs(cli): clarify context trace seat value (#323)
This commit is contained in:
@@ -377,7 +377,7 @@ Examples:
|
||||
.description("Walk the topology tree for one chain filename (instance -> rig -> optional pod -> optional seat), keyed off topology.root")
|
||||
.requiredOption("--rig <rig>", "Rig name (the rigs/<rig> altitude)")
|
||||
.option("--pod <pod>", "Pod id (the pods/<pod> altitude); omit when no pod context is selected")
|
||||
.option("--seat <seat>", "Seat id (the seats/<seat> altitude); omit for a rig-level trace")
|
||||
.option("--seat <seat>", "Seat folder name (<pod>-<member>, e.g. dev1-qa); omit for a rig-level trace")
|
||||
.requiredOption("--name <file>", "Chain filename, identical at every altitude (e.g. LEARNED.md, CULTURE.md)")
|
||||
.option("--json", "JSON output for agents")
|
||||
.action(async (opts: { rig: string; pod?: string; seat?: string; name: string; json?: boolean }) => {
|
||||
|
||||
@@ -94,6 +94,14 @@ const FIXTURE_PREVIEW = {
|
||||
};
|
||||
|
||||
describe("rig context CLI (PL-014)", () => {
|
||||
it("describes --seat as a seat folder name", () => {
|
||||
const trace = contextCommand().commands.find((command) => command.name() === "trace");
|
||||
const seatOption = trace?.options.find((option) => option.long === "--seat");
|
||||
expect(seatOption?.description).toContain("Seat folder name");
|
||||
expect(seatOption?.description).toContain("<pod>-<member>");
|
||||
expect(seatOption?.description).toContain("dev1-qa");
|
||||
});
|
||||
|
||||
let server: http.Server;
|
||||
let port: number;
|
||||
let composeLog: Array<{ outRef?: string; sources?: Array<{ path: string; label: string }> }>;
|
||||
|
||||
Reference in New Issue
Block a user