mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
Merge pull request #9876 from edolstra/store-settings
Don't include store docs in every manpage
This commit is contained in:
commit
e9c8e859db
2 changed files with 3 additions and 6 deletions
|
@ -93,9 +93,6 @@ let
|
||||||
|
|
||||||
maybeProse =
|
maybeProse =
|
||||||
# FIXME: this is a horrible hack to keep `nix help-stores` working.
|
# FIXME: this is a horrible hack to keep `nix help-stores` working.
|
||||||
# the correct answer to this is to remove that command and replace it
|
|
||||||
# by statically generated manpages or the output of something like `nix
|
|
||||||
# store info <store type>`.
|
|
||||||
let
|
let
|
||||||
help-stores = ''
|
help-stores = ''
|
||||||
${index}
|
${index}
|
||||||
|
@ -121,7 +118,7 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
optionalString (details ? doc) (
|
optionalString (details ? doc) (
|
||||||
if match "@store-types@" details.doc != [ ]
|
if match ".*@store-types@.*" details.doc != null
|
||||||
then help-stores
|
then help-stores
|
||||||
else details.doc
|
else details.doc
|
||||||
);
|
);
|
||||||
|
|
|
@ -412,7 +412,7 @@ TEST_F(ServeProtoTest, handshake_log)
|
||||||
toClient.create();
|
toClient.create();
|
||||||
toServer.create();
|
toServer.create();
|
||||||
|
|
||||||
ServeProto::Version clientResult, serverResult;
|
ServeProto::Version clientResult;
|
||||||
|
|
||||||
auto thread = std::thread([&]() {
|
auto thread = std::thread([&]() {
|
||||||
FdSink out { toServer.writeSide.get() };
|
FdSink out { toServer.writeSide.get() };
|
||||||
|
@ -425,7 +425,7 @@ TEST_F(ServeProtoTest, handshake_log)
|
||||||
{
|
{
|
||||||
FdSink out { toClient.writeSide.get() };
|
FdSink out { toClient.writeSide.get() };
|
||||||
FdSource in { toServer.readSide.get() };
|
FdSource in { toServer.readSide.get() };
|
||||||
serverResult = ServeProto::BasicServerConnection::handshake(
|
ServeProto::BasicServerConnection::handshake(
|
||||||
out, in, defaultVersion);
|
out, in, defaultVersion);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue