Merge remote-tracking branch 'origin/master' into flakes

This commit is contained in:
Eelco Dolstra
2020-05-05 18:59:33 +02:00
40 changed files with 635 additions and 501 deletions
+10 -8
View File
@@ -242,16 +242,16 @@ struct CmdDevShell : Common, MixEnvironment
CmdDevShell()
{
mkFlag()
.longName("command")
.shortName('c')
.description("command and arguments to be executed insted of an interactive shell")
.labels({"command", "args"})
.arity(ArityAny)
.handler([&](std::vector<std::string> ss) {
addFlag({
.longName = "command",
.shortName = 'c',
.description = "command and arguments to be executed insted of an interactive shell",
.labels = {"command", "args"},
.handler = {[&](std::vector<std::string> ss) {
if (ss.empty()) throw UsageError("--command requires at least one argument");
command = ss;
});
}}
});
}
std::string description() override
@@ -337,6 +337,8 @@ struct CmdPrintDevEnv : Common
};
}
Category category() override { return catUtility; }
void run(ref<Store> store) override
{
auto buildEnvironment = getBuildEnvironment(store).first;