mu: allow color in early command errors

This commit is contained in:
Dirk-Jan C. Binnema
2023-01-18 00:14:02 +02:00
parent 66e332fcf2
commit 4194f17440
3 changed files with 45 additions and 18 deletions

View File

@ -54,6 +54,13 @@ struct Options {
bool verbose; /**< verbose output */
std::string muhome; /**< alternative mu dir */
/**
* Whether by default, we should show color
*
* @return true or false
*/
static bool default_no_color();
enum struct SubCommand {
Add, Cfind, Extract, Fields, Find, Help, Index,Info, Init, Mkdir,
Remove, Script, Server, Verify, View/*must be last*/
@ -274,7 +281,6 @@ struct Options {
};
} // namepace Mu
#endif /* MU_OPTIONS_HH__ */