forked from lix-project/lix
Merge pull request #9354 from vicky1999/fix/8875
Renamed nix nar dump-path to nix nar pack
This commit is contained in:
commit
2bd2702127
|
@ -61,4 +61,12 @@ struct CmdDumpPath2 : Command
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static auto rDumpPath2 = registerCommand2<CmdDumpPath2>({"nar", "dump-path"});
|
struct CmdNarDumpPath : CmdDumpPath2 {
|
||||||
|
void run() override {
|
||||||
|
warn("'nix nar dump-path' is a deprecated alias for 'nix nar pack'");
|
||||||
|
CmdDumpPath2::run();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
static auto rCmdNarPack = registerCommand2<CmdDumpPath2>({"nar", "pack"});
|
||||||
|
static auto rCmdNarDumpPath = registerCommand2<CmdNarDumpPath>({"nar", "dump-path"});
|
||||||
|
|
|
@ -5,7 +5,7 @@ R""(
|
||||||
* To serialise directory `foo` as a NAR:
|
* To serialise directory `foo` as a NAR:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
# nix nar dump-path ./foo > foo.nar
|
# nix nar pack ./foo > foo.nar
|
||||||
```
|
```
|
||||||
|
|
||||||
# Description
|
# Description
|
||||||
|
|
Loading…
Reference in a new issue