1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

Make nix profile install an alias of nix profile add

This commit is contained in:
Eelco Dolstra 2025-04-10 18:42:04 +02:00
parent b37d1cdd8e
commit fd407141e1
2 changed files with 5 additions and 4 deletions

View file

@ -248,7 +248,6 @@ nix3_manpages = [
'nix3-print-dev-env', 'nix3-print-dev-env',
'nix3-profile-diff-closures', 'nix3-profile-diff-closures',
'nix3-profile-history', 'nix3-profile-history',
'nix3-profile-install',
'nix3-profile-list', 'nix3-profile-list',
'nix3-profile', 'nix3-profile',
'nix3-profile-remove', 'nix3-profile-remove',

View file

@ -984,10 +984,12 @@ struct CmdProfile : NixMultiCommand
{"history", []() { return make_ref<CmdProfileHistory>(); }}, {"history", []() { return make_ref<CmdProfileHistory>(); }},
{"rollback", []() { return make_ref<CmdProfileRollback>(); }}, {"rollback", []() { return make_ref<CmdProfileRollback>(); }},
{"wipe-history", []() { return make_ref<CmdProfileWipeHistory>(); }}, {"wipe-history", []() { return make_ref<CmdProfileWipeHistory>(); }},
// 2025-04-05 Deprecated in favor of "add"
{"install", []() { return make_ref<CmdProfileAdd>(); }},
}) })
{ } {
aliases = {
{"install", { AliasStatus::Deprecated, {"add"}}},
};
}
std::string description() override std::string description() override
{ {