Skip to content

[FEATURE] Tool to extract information from rules and docs #2977

@BernieWhite

Description

@BernieWhite

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

Metadata

Metadata

Assignees

Labels

.NETPull requests that update .net codefeature: cliIssues that relate to PSRule CLI tooling.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions