cli
cli copied to clipboard
Tools for making beautiful & useful command line interfaces
I have a format method need in several places that's hard to express in cli's semantic UI interface. It basically looks like this: ``` r x ── ──────────────────────────────────────────────────── glue::glue("{fr(names(x))} {fl(x)}")...
This could be a good way: https://stat.ethz.ch/pipermail/r-package-devel/2020q2/005338.html Maybe. But I am not sure if it is possible to automate, or if it works within `\verbatim{}`.
Instead of just the id. So that we can write a nice print method for it. Maybe.
"posix" is only supported in rstudio after https://github.com/rstudio/rstudio/pull/12093 (merged now in `main` soon to be Elsbeth). Otherwise we get:
These wouldn't be width-wrapped and newlines would be preserved: ```r cli_bullets( "i-raw" = "foo\nbar" ) ```
E.g. if might eliminate margins: ``` r { cli::cli_h2("HEADER") cli::cli_h2("HEADER") } #> #> ── HEADER ── #> #> ── HEADER ── #> { cli::cli_h2("HEADER") x ── HEADER ── #> ──...