1.0 version

This commit is contained in:
vxclutch
2026-05-27 19:00:09 -04:00
parent 7ee19a2883
commit 1234288e03
6 changed files with 70 additions and 24 deletions

19
internal/app/file.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")
}