@erdoai/cli 0.211.0 → 0.212.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2458,10 +2458,11 @@ var ErdoClient = class {
|
|
|
2458
2458
|
{ reason, organization_slug }
|
|
2459
2459
|
);
|
|
2460
2460
|
}
|
|
2461
|
-
getDecision(slug) {
|
|
2461
|
+
getDecision(slug, organization_slug) {
|
|
2462
|
+
const query = organization_slug ? `?organization_slug=${encodeURIComponent(organization_slug)}` : "";
|
|
2462
2463
|
return this.request(
|
|
2463
2464
|
"GET",
|
|
2464
|
-
`/v1/decisions/${encodeURIComponent(slug)}`
|
|
2465
|
+
`/v1/decisions/${encodeURIComponent(slug)}${query}`
|
|
2465
2466
|
);
|
|
2466
2467
|
}
|
|
2467
2468
|
// Raw aggregates with their denominators — no eligibility verdict, and no single
|
|
@@ -5886,9 +5887,9 @@ decisionsCmd.command("retire <slug>").description("End a standing workstream com
|
|
|
5886
5887
|
});
|
|
5887
5888
|
decisionsCmd.command("show <slug>").description(
|
|
5888
5889
|
"Show one decision in full: the commitment and its authority, every exact action it authorized with how each one ended, every declared effect with the evidence that settled it, and what it replaced or was replaced by"
|
|
5889
|
-
).option("--json", "output raw JSON").action(async (slug, opts) => {
|
|
5890
|
+
).option("--organization <slug>", "read a decision of an authorized client organization (default: active organization)").option("--json", "output raw JSON").action(async (slug, opts) => {
|
|
5890
5891
|
try {
|
|
5891
|
-
const detail = await new ErdoClient().getDecision(slug);
|
|
5892
|
+
const detail = await new ErdoClient().getDecision(slug, opts.organization);
|
|
5892
5893
|
if (opts.json) {
|
|
5893
5894
|
print(detail);
|
|
5894
5895
|
return;
|