0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-12 05:16:25 +03:00

nixos/nixos-option: Rewrite in a more suitable language

Also add --all, which shows the value of all options.  Diffing the --all
output on either side of contemplated changes is a lovely way to better
understand what's going on inside nixos.
This commit is contained in:
Chuck 2019-09-05 17:29:01 -07:00 committed by Linus Heckemann
parent d690c20efd
commit 59c5bfc86b
8 changed files with 695 additions and 349 deletions

View file

@ -0,0 +1,9 @@
#pragma once
#include <iostream>
#include <nix/types.hh>
#include <string>
nix::Strings parseAttrPath(const std::string &s);
bool isVarName(const std::string &s);
std::ostream &printStringValue(std::ostream &str, const char *string);