mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
Improve nix show-config --json
In particular, show descriptions. This could be used for manpage generation etc.
This commit is contained in:
parent
4410e9d995
commit
efa4bdbfcd
6 changed files with 71 additions and 43 deletions
|
|
@ -7,15 +7,10 @@
|
|||
namespace nix {
|
||||
|
||||
void toJSON(std::ostream & str, const char * start, const char * end);
|
||||
void toJSON(std::ostream & str, const std::string & s);
|
||||
void toJSON(std::ostream & str, const char * s);
|
||||
void toJSON(std::ostream & str, unsigned long long n);
|
||||
void toJSON(std::ostream & str, unsigned long n);
|
||||
void toJSON(std::ostream & str, long n);
|
||||
void toJSON(std::ostream & str, unsigned int n);
|
||||
void toJSON(std::ostream & str, int n);
|
||||
void toJSON(std::ostream & str, double f);
|
||||
void toJSON(std::ostream & str, bool b);
|
||||
|
||||
template<typename T>
|
||||
void toJSON(std::ostream & str, const T & n);
|
||||
|
||||
class JSONWriter
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue