aboutsummaryrefslogtreecommitdiff
path: root/src/nix/command.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-08-17 17:44:52 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-08-17 17:44:52 +0200
commita72a20d68fe6ae75f05f69e7de0bc3326d779144 (patch)
treea945dff2d1fbf9a64fa132814a59c4db8020d89e /src/nix/command.cc
parent7cdc739ece681128dd4153e53acb85867accdd1b (diff)
Add 'nix dump-args' to dump all commands/flags for manpage generation
Diffstat (limited to 'src/nix/command.cc')
-rw-r--r--src/nix/command.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nix/command.cc b/src/nix/command.cc
index da32819da..2f1fbded1 100644
--- a/src/nix/command.cc
+++ b/src/nix/command.cc
@@ -4,12 +4,25 @@
#include "nixexpr.hh"
#include "profiles.hh"
+#include <nlohmann/json.hpp>
+
extern char * * environ __attribute__((weak));
namespace nix {
Commands * RegisterCommand::commands = nullptr;
+void NixMultiCommand::printHelp(const string & programName, std::ostream & out)
+{
+ MultiCommand::printHelp(programName, out);
+}
+
+nlohmann::json NixMultiCommand::toJSON()
+{
+ // FIXME: use Command::toJSON() as well.
+ return MultiCommand::toJSON();
+}
+
StoreCommand::StoreCommand()
{
}