This commit is contained in:
vxclutch
2026-05-27 08:30:51 -04:00
parent 060200c998
commit 71ffad466b
12 changed files with 175 additions and 66 deletions

19
internal/app/filePath.go Normal file
View File

@@ -0,0 +1,19 @@
package app
import (
"errors"
"os"
"strings"
)
func GetFilePath() (string, error) {
fp := ""
for _, v := range os.Args[1:] {
if !strings.HasPrefix(v, "-") {
fp = v
return fp, nil
}
}
return "", errors.New("not enough arguments")
}