forked from lix-project/lix
nar dump-path command renamed to nar pack
This commit is contained in:
parent
c889881cbb
commit
4944cdb94d
|
@ -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
|
||||||
|
@ -15,3 +15,4 @@ This command generates a NAR file containing the serialisation of
|
||||||
symbolic links. The NAR is written to standard output.
|
symbolic links. The NAR is written to standard output.
|
||||||
|
|
||||||
)""
|
)""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue