mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 09:36:15 +02:00
nix log: Add examples
This commit is contained in:
parent
17afc42895
commit
2ebeffcfd4
1 changed files with 19 additions and 1 deletions
|
@ -19,7 +19,25 @@ struct CmdLog : InstallableCommand
|
||||||
|
|
||||||
std::string description() override
|
std::string description() override
|
||||||
{
|
{
|
||||||
return "show the build log of the specified packages or paths";
|
return "show the build log of the specified packages or paths, if available";
|
||||||
|
}
|
||||||
|
|
||||||
|
Examples examples() override
|
||||||
|
{
|
||||||
|
return {
|
||||||
|
Example{
|
||||||
|
"To get the build log of GNU Hello:",
|
||||||
|
"nix log nixpkgs.hello"
|
||||||
|
},
|
||||||
|
Example{
|
||||||
|
"To get the build log of a specific path:",
|
||||||
|
"nix log /nix/store/lmngj4wcm9rkv3w4dfhzhcyij3195hiq-thunderbird-52.2.1"
|
||||||
|
},
|
||||||
|
Example{
|
||||||
|
"To get a build log from a specific binary cache:",
|
||||||
|
"nix log --store https://cache.nixos.org nixpkgs.hello"
|
||||||
|
},
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
void run(ref<Store> store) override
|
void run(ref<Store> store) override
|
||||||
|
|
Loading…
Reference in a new issue