diff --git a/src/commands/status-all.ts b/src/commands/status-all.ts index 5fe975abf47..a346d4616fc 100644 --- a/src/commands/status-all.ts +++ b/src/commands/status-all.ts @@ -266,6 +266,18 @@ export async function statusAllCommand( ).length; const overviewRows = [ + (() => { + const operatorPolicy = snap?.policy; + if (!operatorPolicy?.exists) { + return { Item: "Operator policy", Value: "not configured" }; + } + return { + Item: "Operator policy", + Value: operatorPolicy.valid + ? `${operatorPolicy.path} · ${operatorPolicy.lockedPaths.length} locked path${operatorPolicy.lockedPaths.length === 1 ? "" : "s"}` + : `${operatorPolicy.path} · invalid`, + }; + })(), { Item: "Version", Value: VERSION }, { Item: "OS", Value: osSummary.label }, { Item: "Node", Value: process.versions.node },