docs: document PAT product-line batch authorization#396
Open
shangguanxuan633-lab wants to merge 1 commit into
Open
Conversation
115dbf6 to
f0b95ac
Compare
f0b95ac to
9029773
Compare
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.
Background
This PR documents the intended PAT product-line batch authorization usage in
dws pat chmod --help. The code path already supports explicit scopes, product filters, and recommendation planning; this change makes the recommended product-line form clearer for users while keeping the existing compatible forms documented.Changes
Edited
internal/pat/chmod.go: add a批量授权help section recommending--recommend --product <productCode[,productCode]>.dws pat chmod --recommend --product minutes --grant-type permanent --dry-run.--products, and bare--recommendexamples.Scope
Help/docs text only.
Current PR head:
9029773Current diff: single file,
internal/pat/chmod.go,+7 / -1.Verification
Passed:
git diff --check upstream/main...HEAD✅go run ./cmd/main.go pat chmod --help --format json✅go test ./internal/pat ./test/contract✅The help output now includes the new
批量授权section and the--recommend --product minutes --grant-type permanent --dry-runexample.