refactor: Decompose all utilities from cmd package

This commit is contained in:
Felicitas Pojtinger
2021-12-08 00:27:46 +01:00
parent c5e7cab4f3
commit 0be10a7698
23 changed files with 208 additions and 270 deletions

View File

@@ -13,6 +13,7 @@ import (
"github.com/pojntfx/stfs/internal/formatting"
"github.com/pojntfx/stfs/internal/persisters"
"github.com/pojntfx/stfs/pkg/config"
"github.com/pojntfx/stfs/pkg/hardware"
"github.com/pojntfx/stfs/pkg/recovery"
)
@@ -88,7 +89,9 @@ func Restore(
}
if err := recovery.Fetch(
state,
hardware.DriveConfig{
Drive: state.Drive,
},
pipes,
crypto,