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:
parent
588282d9ad
commit
f32ba81c5e
39 changed files with 2551 additions and 37 deletions
20
test/realpath/main.go
Normal file
20
test/realpath/main.go
Normal 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)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue