Skip to content

Add package doc comments to all builtins#19

Merged
AlexandreYang merged 1 commit intomainfrom
dd/add-builtin-package-doc-comments
Mar 10, 2026
Merged

Add package doc comments to all builtins#19
AlexandreYang merged 1 commit intomainfrom
dd/add-builtin-package-doc-comments

Conversation

@AlexandreYang
Copy link
Copy Markdown
Member

What does this PR do?

Adds package-level doc comments describing each builtin command to all builtin .go files, matching the style already used in head.go.

Motivation

head.go already has a comprehensive package doc comment describing the command's purpose, usage, flags, and exit codes. The remaining builtins (cat, echo, break, continue, exit, false, true) were missing these descriptions.

Testing

  • go build ./interp/builtins/... passes.

Checklist

  • Tests added/updated
  • Documentation updated (if applicable)

PR by Bits
View session in Datadog

Comment @DataDog to request changes

Co-authored-by: AlexandreYang <49917914+AlexandreYang@users.noreply.github.com>
@datadog-prod-us1-6
Copy link
Copy Markdown
Contributor

View session in Datadog

Bits Dev status: ✅ Done

CI Auto-fix: Disabled | Enable

Comment @DataDog to request changes

@AlexandreYang AlexandreYang merged commit 9337140 into main Mar 10, 2026
8 checks passed
@AlexandreYang AlexandreYang deleted the dd/add-builtin-package-doc-comments branch March 10, 2026 09:59
@matt-dz matt-dz mentioned this pull request Mar 12, 2026
4 tasks
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