mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
parent
6e6e998930
commit
1827cf5a9b
1 changed files with 15 additions and 2 deletions
|
@ -34,8 +34,21 @@ struct CmdWhyDepends : SourceExprCommand
|
||||||
|
|
||||||
CmdWhyDepends()
|
CmdWhyDepends()
|
||||||
{
|
{
|
||||||
expectArg("package", &_package);
|
expectArgs({
|
||||||
expectArg("dependency", &_dependency);
|
.label = "package",
|
||||||
|
.handler = {&_package},
|
||||||
|
.completer = {[&](size_t, std::string_view prefix) {
|
||||||
|
completeInstallable(prefix);
|
||||||
|
}}
|
||||||
|
});
|
||||||
|
|
||||||
|
expectArgs({
|
||||||
|
.label = "dependency",
|
||||||
|
.handler = {&_dependency},
|
||||||
|
.completer = {[&](size_t, std::string_view prefix) {
|
||||||
|
completeInstallable(prefix);
|
||||||
|
}}
|
||||||
|
});
|
||||||
|
|
||||||
addFlag({
|
addFlag({
|
||||||
.longName = "all",
|
.longName = "all",
|
||||||
|
|
Loading…
Reference in a new issue