fsx: Remove environment references
This commit removes the reference to the environment from the fsx package.
This commit is contained in:
parent
5a43ecfaeb
commit
3263920d6b
25 changed files with 167 additions and 183 deletions
|
|
@ -3,7 +3,6 @@ package cmd
|
|||
import (
|
||||
wisski_distillery "github.com/FAU-CDI/wisski-distillery"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/cli"
|
||||
"github.com/FAU-CDI/wisski-distillery/pkg/environment"
|
||||
"github.com/FAU-CDI/wisski-distillery/pkg/fsx"
|
||||
"github.com/FAU-CDI/wisski-distillery/pkg/logging"
|
||||
)
|
||||
|
|
@ -29,8 +28,7 @@ func (monday) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
func (monday monday) AfterParse() error {
|
||||
// TODO: Use a generic environment here!
|
||||
if !fsx.IsFile(new(environment.Native), monday.Positionals.GraphdbZip) {
|
||||
if !fsx.IsFile(monday.Positionals.GraphdbZip) {
|
||||
return errNoGraphDBZip.WithMessageF(monday.Positionals.GraphdbZip)
|
||||
}
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue