1
0
Fork 0
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:
Eelco Dolstra 2021-09-14 19:05:28 +02:00
parent 1fbaf36729
commit 817562e694
6 changed files with 108 additions and 34 deletions

View file

@ -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. */