mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
Add "nix profile rollback" command
This commit is contained in:
parent
1fbaf36729
commit
817562e694
6 changed files with 108 additions and 34 deletions
|
@ -91,6 +91,14 @@ protected:
|
|||
})
|
||||
, arity(1)
|
||||
{ }
|
||||
|
||||
template<class I>
|
||||
Handler(std::optional<I> * dest)
|
||||
: fun([=](std::vector<std::string> ss) {
|
||||
*dest = string2IntWithUnitPrefix<I>(ss[0]);
|
||||
})
|
||||
, arity(1)
|
||||
{ }
|
||||
};
|
||||
|
||||
/* Options. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue