add a 'ta undo' subcommand

This commit is contained in:
Dustin J. Mitchell
2021-12-21 01:05:52 +00:00
parent 9d93928996
commit caa62ba9a0
4 changed files with 70 additions and 0 deletions

View File

@@ -90,6 +90,13 @@ pub(crate) fn invoke(command: Command, settings: Settings) -> Result<(), crate::
return cmd::sync::execute(&mut w, &mut replica, &settings, &mut server);
}
Command {
subcommand: Subcommand::Undo,
..
} => {
return cmd::undo::execute(&mut w, &mut replica);
}
// handled in the first match, but here to ensure this match is exhaustive
Command {
subcommand: Subcommand::Help { .. },