nixpkgs/nixos/modules
Chuck 84d55716a9 Don't print header on stderr
Automated consumers can use 'sed 1d' or similar to remove this header.

This probably makes this output *easier* to consume correctly.  Having
this header show up in consumers' terminal or log output is probably not
useful, but hiding it without hiding all error messages would have been
more troublesome that just stripping it from stdout.

I.e., previously, unsophisticated use would show undesired output:
  $ some-other-tool
  This attribute set contains:
  This attribute set contains:
  This attribute set contains:
  This attribute set contains:
  <Actual some-other-tool output>

The simplest way to hide this undesired output would have been
nixos-option ... 2>/dev/null, which would hide all error messages.
We do not wish to encourage that.

Correct use would have been something like:
  nixos-option ... 2> >( grep --line-buffered -v 'This attribute set contains:')

After this change, correct use is simpler:
  nixos-option ... | sed 1d
or
  nixos-option ... | sed '1/This attribute set contains:/d'
if the caller don't know if this invocation of nixos-option will yield
an attribute listing or an option description.
2019-11-04 15:11:45 +01:00
..
config Merge pull request #68483 from chkno/optional-home-bin-in-path 2019-11-02 14:27:24 +01:00
hardware brillo: init at 1.4.8 2019-11-03 14:42:43 +01:00
i18n/input-method Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
installer Don't print header on stderr 2019-11-04 15:11:45 +01:00
misc locate.nix: Don't create /var/cache 2019-10-08 21:45:42 +02:00
profiles Revert "installer: Disable udisks" 2019-10-16 20:31:24 -04:00
programs Merge pull request #72391 from urkud/gnupg-pinentry-gnome3 2019-11-01 13:02:21 +00:00
security pam_mount: change order of lines in pam_mount.conf 2019-11-03 12:43:01 +08:00
services Merge pull request #68327 from mmilata/moin 2019-11-03 21:36:12 +01:00
system nixos/networkd: add ipv4-fallback and fallback as valid options to LinkLocalAddressing 2019-10-28 20:51:17 +01:00
tasks Fix typo in message (vswichtesvswitches) 2019-10-26 13:26:01 +02:00
testing nixos/test: remove the stateVersion statement from the test-instrumentation 2019-06-03 15:05:24 +02:00
virtualisation ec2-utils: init at 0.5.1, include in amazon-image profile (#67347) 2019-11-01 20:57:44 +00:00
module-list.nix Merge pull request #68327 from mmilata/moin 2019-11-03 21:36:12 +01:00
rename.nix nixos/matomo: fix deprecation warnings 2019-10-28 05:07:27 +00:00