nar dump-path command renamed to nar pack

This commit is contained in:
vicky1999 2023-11-14 19:59:48 +05:30
parent c889881cbb
commit 4944cdb94d
2 changed files with 11 additions and 2 deletions

View file

@ -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"});

View file

@ -5,7 +5,7 @@ R""(
* To serialise directory `foo` as a NAR:
```console
# nix nar dump-path ./foo > foo.nar
# nix nar pack ./foo > foo.nar
```
# Description
@ -15,3 +15,4 @@ This command generates a NAR file containing the serialisation of
symbolic links. The NAR is written to standard output.
)""