docs(libraries): use positional policy argument for enable/disable/update#3599
Open
s-stumbo wants to merge 2 commits into
Open
docs(libraries): use positional policy argument for enable/disable/update#3599s-stumbo wants to merge 2 commits into
s-stumbo wants to merge 2 commits into
Conversation
…date chainctl libraries policy enable/disable now accept the policy name or ID as a positional argument (chainguard-dev/mono#46764). Update the Libraries access and migration guides to use the positional form, matching update/describe/delete. create --name is left unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for ornate-narwhal-088216 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
matthewhelmke
approved these changes
Jul 16, 2026
matthewhelmke
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, consistent and clear
Signed-off-by: s-stumbo <sally.stumbo@chainguard.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Updates the Chainguard Libraries docs to reflect chainguard-dev/mono#46764, which makes
chainctl libraries policy enableanddisableaccept the policy name or ID as a positional argument (matchingdescribe/update/delete).The docs previously used
--nameonenableandupdate— neither command has ever accepted--name— and used--policyonenable. All such references now use the positional form.create --nameis left unchanged, sincecreatestill requires--nameto name a new policy.Changes
content/chainguard/libraries/access.md— 5enable --policy=→ positional; 4enable --name=→ positional; 2update --name=→ positional.content/chainguard/libraries/java/migration.md— 1enable --policy=→ positional.content/chainguard/libraries/javascript/migration.md— 1enable --policy=→ positional.The auto-generated
content/platform/chainctl/chainctl-docs/chainctl_libraries_policy_*.mdpages are intentionally left untouched; they regenerate from the CLI via AutoDocs.Open item
access.mdstill notes that these commands requirechainctlv0.2.291 or newer. Positionalenable/disableis newer than that (PR 46764 merged 2026-07-16), so the minimum version for the positional form is likely later. The note is left as-is pending confirmation of the release that ships PR 46764.Test plan
chainctlbuild containing PR 46764.chainctl libraries policy create --name=test-cooldown --cooldown-days=3 --parent=<org>chainctl libraries policy enable test-cooldown --ecosystem=JAVASCRIPT --mode=PREVIEW— confirm the positional name is accepted.chainctl libraries policy update test-cooldown --block=purl=pkg:npm/lodash— confirm positional works onupdate.chainctl libraries policy enable test-cooldown --policy=test-cooldown --ecosystem=JAVASCRIPT— confirm supplying both positional and--policyerrors (validates mutual exclusivity).hugo serverand confirm the code blocks on all three pages render correctly.Created in collaboration with Claude Code running Opus 4.8 (1M context) on 2026-07-16.
🤖 Generated with Claude Code