1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-07-05 15:18:30 +00:00

*: rework the test tools, so no dep is ignored

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2022-04-03 23:15:40 -04:00
parent 588282d9ad
commit f32ba81c5e
Signed by: vbatts
GPG key ID: 10937E57733F1362
39 changed files with 2551 additions and 37 deletions

20
test/realpath/main.go Normal file
View file

@ -0,0 +1,20 @@
package main
import (
"flag"
"fmt"
"os"
"path/filepath"
)
func main() {
flag.Parse()
for _, arg := range flag.Args() {
path, err := filepath.Abs(arg)
if err != nil {
fmt.Fprint(os.Stderr, err)
os.Exit(1)
}
fmt.Printf("%s", path)
}
}