mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2025-09-08 11:30:40 +00:00
rewrite with commander
This commit is contained in:
9
src/handlers/restore.ts
Normal file
9
src/handlers/restore.ts
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user