docs: document GLAB_NO_PROMPT and mark NO_PROMPT deprecated

What does this MR do?

Documents the GLAB_NO_PROMPT environment variable and clarifies that the unprefixed NO_PROMPT is a deprecated alias.

GLAB_NO_PROMPT was referenced only in cmd/glab/main.go and appeared in no user-facing documentation, while NO_PROMPT was presented as the primary variable even though it is the deprecated, unprefixed form (using it prints a deprecation warning steering users to GLAB_NO_PROMPT).

Changes

  • internal/commands/root.go: In the help:environment annotation, make GLAB_NO_PROMPT the primary entry and document its accepted values (true/1 to disable, false/0 to enable); mark NO_PROMPT as a deprecated alias.
  • docs/source/_index.md: Regenerated env-var table reflecting the annotation change.
  • README.md: Add a GLAB_NO_PROMPT row to the env-var table and mark NO_PROMPT as deprecated.
  • internal/iostreams/iostreams.go: Fix the stale IsInteractive doc comment that referenced only NO_PROMPT.

Closes #8336 (closed)

Merge request reports

Loading