Skip to content

docs(site): document --all-repos and --source flags for secrets commands#653

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/site-secrets-discovery-flags-60fa7a7c683a6348
Draft

docs(site): document --all-repos and --source flags for secrets commands#653
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/site-secrets-discovery-flags-60fa7a7c683a6348

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Summary

Changes

  • site/src/content/docs/setup/cli.mdx — three targeted additions:
    1. --all-repos and --source bullets added to secrets set options list; --definition-ids clarified as mutually exclusive with these flags
    2. --all-repos, --source bullets added to secrets list and secrets delete options lists
    3. New Project-scope discovery subsection with prose explanation and three bash examples
    4. Common examples block updated with an --all-repos one-liner

Accuracy checks

  • --all-repos: confirmed in src/secrets.rsSetOpts.all_repos: bool (line 178), ListOpts.all_repos: bool (line 456), DeleteOpts.all_repos: bool (line 542); activates DiscoveryScope::AllRepos branch (line 238)
  • --source: confirmed as SetOpts.source: Option<&str> (line 182), same shape on List/Delete; passed as source_filter to resolve_definitions_via_discovery (line 270)
  • Mutual exclusivity with --definition-ids: confirmed by if definition_ids.is_none() && (all_repos || source_filter.is_some()) guard (line 200)
  • enable/disable/remove not changed: verified — these structs have no all_repos/source fields
  • Cross-checked against docs/cli.md Project-scope discovery section (lines 60–67)

Validation

  • cd site && npm ci && npm run build — 28 pages built, all internal links valid

Created by the docs-writer workflow.

Generated by Docs Writer · ● 1.7M ·

Add the two opt-in project-scope discovery flags introduced in
feat(secrets): #624 to the CLI reference page:

- --all-repos: activates Preview-driven discovery across the entire ADO
  project, not just local lock files
- --source <path>: filters to definitions whose ado-aw-metadata marker
  references the given template path

Also adds a "Project-scope discovery" subsection with usage examples and
updates the common-examples block with an --all-repos one-liner.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot mentioned this pull request May 20, 2026
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.

0 participants