Skip to content

docs: document PAT product-line batch authorization#396

Open
shangguanxuan633-lab wants to merge 1 commit into
DingTalk-Real-AI:mainfrom
shangguanxuan633-lab:feat/docs-product-batch-auth-20260603-1008
Open

docs: document PAT product-line batch authorization#396
shangguanxuan633-lab wants to merge 1 commit into
DingTalk-Real-AI:mainfrom
shangguanxuan633-lab:feat/docs-product-batch-auth-20260603-1008

Conversation

@shangguanxuan633-lab
Copy link
Copy Markdown
Contributor

@shangguanxuan633-lab shangguanxuan633-lab commented Jun 3, 2026

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]>.
  • Add a dry-run example for product-line batch authorization:
    dws pat chmod --recommend --product minutes --grant-type permanent --dry-run.
  • Preserve existing explicit-scope, --products, and bare --recommend examples.

Scope

Help/docs text only.

Current PR head: 9029773
Current 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-run example.

@shangguanxuan633-lab shangguanxuan633-lab force-pushed the feat/docs-product-batch-auth-20260603-1008 branch 4 times, most recently from 115dbf6 to f0b95ac Compare June 3, 2026 03:52
@shangguanxuan633-lab shangguanxuan633-lab force-pushed the feat/docs-product-batch-auth-20260603-1008 branch from f0b95ac to 9029773 Compare June 3, 2026 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant