10 lines
316 B
TypeScript
10 lines
316 B
TypeScript
|
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)
|
||
|
}
|