Use fsx package and friends from pkglib
This commit is contained in:
parent
1f8c55da7c
commit
0f6803f890
35 changed files with 91 additions and 493 deletions
|
|
@ -3,8 +3,8 @@ 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/fsx"
|
||||
"github.com/FAU-CDI/wisski-distillery/pkg/logging"
|
||||
"github.com/tkw1536/pkglib/fsx"
|
||||
)
|
||||
|
||||
// Monday is the 'monday' command
|
||||
|
|
@ -28,7 +28,7 @@ func (monday) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
func (monday monday) AfterParse() error {
|
||||
if !fsx.IsFile(monday.Positionals.GraphdbZip) {
|
||||
if !fsx.IsRegular(monday.Positionals.GraphdbZip) {
|
||||
return errNoGraphDBZip.WithMessageF(monday.Positionals.GraphdbZip)
|
||||
}
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue