[spec-extractor] Update package specifications for agentdrain, cli, console, constants#43173
Merged
Merged
Conversation
- console: document FormatSuccessMessageStderr, FormatInfoMessageStderr, FormatListItemStderr, FormatSectionHeaderStderr — the stderr-TTY-aware variants that check os.Stderr instead of os.Stdout before applying ANSI styling - constants: document FilePermSensitive, FilePermPublic, FilePermExecutable, DirPermSensitive, DirPermPublic file mode constants Packages analyzed this run: agentdrain, cli, console, constants Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Summary
Documentation-only update to two package READMEs, adding specifications for recently introduced symbols in
pkg/consoleandpkg/constants.Changes
pkg/console/README.mdFormatSuccessMessageStderr— success message checkingos.StderrTTY stateFormatInfoMessageStderr— info message checkingos.StderrTTY stateFormatListItemStderr— list entry checkingos.StderrTTY stateFormatSectionHeaderStderr— section header checkingos.StderrTTY state*Stderrvariants checkos.Stderr(notos.Stdout) for terminal detection; callers writing directly toos.Stderrshould use these to ensure correct color stripping in piped/non-interactive contexts.pkg/constants/README.mdfs.FileModevalues for consistent file and directory creation:FilePermSensitive(0o600) — owner-only read/write (config files, credentials)FilePermPublic(0o644) — owner read/write + world read (normal files)FilePermExecutable(0o755) — owner/group/world executable (scripts, binaries)DirPermSensitive(0o750) — owner+group access (sensitive directories)DirPermPublic(0o755) — standard non-sensitive directory accessScope
Documentation only — no Go source files modified. No behaviour changes.