PSRule icon indicating copy to clipboard operation
PSRule copied to clipboard

[FEATURE] Tool to extract information from rules and docs

Open BernieWhite opened this issue 6 months ago • 0 comments

Your suggestion

Currently rules expose metadata such as tags, labels, and annotations. However it's not always easy to programmatically get this information for build and release tasks.

We want to extend PSRule CLI (PSRule.Tool) that can be used to extract this information about rules when pipelines and copilot actions run.

The CLI is for pipeline automation so returning JSON is required so is can be easily consumed by other tools.

The tool should expose a get rule command, this similar to the Get-PSRule powershell cmdlet that uses GetRulePipeline.

Alternatives

n/a

Additional context

No response

BernieWhite avatar Jul 10 '25 12:07 BernieWhite