Skip to content

Document cliMessage class in "Building a Semantic CLI" vignette - #837

Merged
gaborcsardi merged 1 commit into
r-lib:mainfrom
shreyabyte:docs/cli-message-vs-climessage
Aug 23, 2026
Merged

Document cliMessage class in "Building a Semantic CLI" vignette#837
gaborcsardi merged 1 commit into
r-lib:mainfrom
shreyabyte:docs/cli-message-vs-climessage

Conversation

@shreyabyte

Copy link
Copy Markdown
Contributor

Closes #832

Adds an explanation of the cliMessage class to the "CLI messages" section of the semantic-cli vignette, and when to use it with suppressMessages() / testthat::expect_message(), as distinct from the internal cli_message condition class already documented.

This is a separate approach from #833, which does a direct find-replace of cli_messagecliMessage. Per the discussion on #832, both classes are real and distinct, so this PR adds an explanation instead of replacing one with the other.

@shreyabyte
shreyabyte force-pushed the docs/cli-message-vs-climessage branch from 72a2464 to dc3cc32 Compare August 23, 2026 06:13
@gaborcsardi
gaborcsardi merged commit e42bb79 into r-lib:main Aug 23, 2026
10 of 11 checks passed
@gaborcsardi

Copy link
Copy Markdown
Member

Thank you!

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.

Correct cli class in "Building a Semantic CLI" vignette

2 participants