mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-01-31 23:46:48 +02:00
add deprecation warnings in documentation
this is hacky, but can serve as a stopgap until we can do it programmatically.
This commit is contained in:
parent
d46230eff5
commit
384ffb4443
1 changed files with 21 additions and 4 deletions
|
@ -49,7 +49,13 @@ MixFlakeOptions::MixFlakeOptions()
|
||||||
|
|
||||||
addFlag({
|
addFlag({
|
||||||
.longName = "recreate-lock-file",
|
.longName = "recreate-lock-file",
|
||||||
.description = "Recreate the flake's lock file from scratch.",
|
.description = R"(
|
||||||
|
Recreate the flake's lock file from scratch.
|
||||||
|
|
||||||
|
> **DEPRECATED**
|
||||||
|
>
|
||||||
|
> Use [`nix flake update`](@docroot@/command-ref/new-cli/nix3-flake-update.md) instead.
|
||||||
|
)",
|
||||||
.category = category,
|
.category = category,
|
||||||
.handler = {[&]() {
|
.handler = {[&]() {
|
||||||
lockFlags.recreateLockFile = true;
|
lockFlags.recreateLockFile = true;
|
||||||
|
@ -73,8 +79,13 @@ MixFlakeOptions::MixFlakeOptions()
|
||||||
|
|
||||||
addFlag({
|
addFlag({
|
||||||
.longName = "no-registries",
|
.longName = "no-registries",
|
||||||
.description =
|
.description = R"(
|
||||||
"Don't allow lookups in the flake registries. This option is deprecated; use `--no-use-registries`.",
|
Don't allow lookups in the flake registries.
|
||||||
|
|
||||||
|
> **DEPRECATED**
|
||||||
|
>
|
||||||
|
> Use [`--no-use-registries`](#opt-no-use-registries) instead.
|
||||||
|
)",
|
||||||
.category = category,
|
.category = category,
|
||||||
.handler = {[&]() {
|
.handler = {[&]() {
|
||||||
lockFlags.useRegistries = false;
|
lockFlags.useRegistries = false;
|
||||||
|
@ -91,7 +102,13 @@ MixFlakeOptions::MixFlakeOptions()
|
||||||
|
|
||||||
addFlag({
|
addFlag({
|
||||||
.longName = "update-input",
|
.longName = "update-input",
|
||||||
.description = "Update a specific flake input (ignoring its previous entry in the lock file).",
|
.description = R"(
|
||||||
|
Update a specific flake input (ignoring its previous entry in the lock file).
|
||||||
|
|
||||||
|
> **DEPRECATED**
|
||||||
|
>
|
||||||
|
> Use [`nix flake update`](@docroot@/command-ref/new-cli/nix3-flake-update.md) instead.
|
||||||
|
)",
|
||||||
.category = category,
|
.category = category,
|
||||||
.labels = {"input-path"},
|
.labels = {"input-path"},
|
||||||
.handler = {[&](std::string s) {
|
.handler = {[&](std::string s) {
|
||||||
|
|
Loading…
Reference in a new issue