![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <fmt.hh>
Public Member Functions | |
| HintFmt (const std::string &literal) | |
| template<typename... Args> | |
| HintFmt (const std::string &format, const Args &... args) | |
| HintFmt (const HintFmt &hf) | |
| template<typename... Args> | |
| HintFmt (boost::format &&fmt, const Args &... args) | |
| HintFmt & | operator% (const std::filesystem::path &value)=delete |
| template<class T> | |
| HintFmt & | operator% (const T &value) |
| template<class T> | |
| HintFmt & | operator% (const Uncolored< T > &value) |
| HintFmt & | operator% (const HintFmt &value) |
| HintFmt & | operator= (const HintFmt &rhs)=default |
| std::string | str () const |
| template<> | |
| HintFmt & | operator% (const ValuePrinter &value) |
| template<> | |
| HintFmt & | operator% (const ValuePrinter &value) |
Static Public Member Functions | |
| static HintFmt | fromFormatString (const std::string &format) |
A wrapper around boost::format which colors interpolated arguments in magenta by default.
|
inline |
Format the given string literally, without interpolating format placeholders.
|
inline |
Interpolate the given arguments into the format string.
Embed another hint as is. It carries its own coloring.
| HintFmt & nix::HintFmt::operator% | ( | const ValuePrinter & | value | ) |
ValuePrinter does its own ANSI formatting, so we don't color it magenta.