cli
cli copied to clipboard
Create a cheat sheet
I love cli but always find myself having to pour through the docs to find the same types of things. A cheat sheet would be great!
Some of cli is still in flux, so it is bit early to create a cheat sheet now. But maybe we can improve the organization of the existing docs at https://cli.r-lib.org/reference/index.html?
Working on this at tidy-dev-day with @simonpcouch and @gadenbuie
Draft prioritisation of topics in https://cli.r-lib.org/reference/:
Section/Page 1:
-
Format and signal errors with cli formatting
-
cli_bullets() - Inline Markup (for one line of text)
- substitution of classes; (pure styling)
- glue substitution (code eval)
- default classes: bullets &
.classmodifiers
-
-
Semantic CLI Elements
- "Structured elements": bullets, ul/ol, blockquote,
- purely messages (beyond inline markup)
- usually for
print()
- Basic Progress bars
- Basic Pluralization
Section/Page 2:
Not on cheatsheet:
- Functions for (should be covered in page 1 as cli elements OR inline markup)
- ANSI Control Sequences
- Hashing
- Superseded functions
Unsure:
-
Utilities and Configuration
-
cli_fmt()(no print) vscli_format()(print)
-