Merge pull request #9354 from vicky1999/fix/8875

Renamed nix nar dump-path to nix nar pack
This commit is contained in:
Eelco Dolstra 2023-11-16 15:06:33 +01:00 committed by GitHub
commit 2bd2702127
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 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: * To serialise directory `foo` as a NAR:
```console ```console
# nix nar dump-path ./foo > foo.nar # nix nar pack ./foo > foo.nar
``` ```
# Description # Description