Add custom cli style to a vector

cli_vec(x, style = list())

## Arguments

x Vector, that will we collapsed by cli. Style to apply to the vector. It is used as a theme on a span element that is created for the vector. You can set vec_sep and vec_last to modify the sep and last arguments of glue::glue_collapse(). See an example below.

## Details

You can this function to change the default parameters of glue::glue_collapse(), see an example below.

The style is added as an attribute, so operations that remove attributes will remove the style as well.

v <- cli_vec(
#>   My list: foo & bar & foobar.