rewrite with commander

This commit is contained in:
2020-11-06 23:51:23 +01:00
parent e9a7e03af7
commit 60d7e0b561
27 changed files with 702 additions and 766 deletions

9
src/handlers/restore.ts Normal file
View File

@@ -0,0 +1,9 @@
import { restoreSingle } from '../restore'
import { Flags } from '../types'
import { checkIfResticIsAvailable, checkIfValidLocation } from '../utils'
export default function restore({ location, to, from }: Flags) {
checkIfResticIsAvailable()
checkIfValidLocation(location)
restoreSingle(location, from, to)
}