HomeClusterLabs Projects

Refactor: libcrmcommon: New pcmk__output_text_{get,set}_fancy()

Description

Refactor: libcrmcommon: New pcmk__output_text_{get,set}_fancy()

Use set instead of forcing --text-fancy in CLI tools. Create a new
priv->fancy member that we'll now check in addition to the fancy static
variable, and that the new function will set to true or false.

The fancy static variable has another shortcoming besides being tied to
a CLI option: it applies to all text output objects in a given
program. An upcoming commit will hide and deprecate --text-fancy, and
we'll drop it and the static variable in a future release.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Feb 16 2024, 12:27 AM
Parents
rPafe56d6b6b9a: Doc: libcrmcommon, tools: Standardize va_list doxygen
Branches
Unknown
Tags
Unknown