dndimport

This commit is contained in:
Ian Gulliver
2023-05-14 15:49:04 -07:00
parent 2f29b4a853
commit 0aaaeaf15b
2 changed files with 140 additions and 2 deletions

View File

@@ -16,12 +16,17 @@ var mapSigs = map[string]string{
}
func main() {
root := flag.String("root", "", "root directory to validate")
l := slog.New(slog.NewTextHandler(os.Stderr, nil))
root := flag.String("root", "", "root directory to validate")
flag.Parse()
if *root == "" {
l.Error("please specify --root")
os.Exit(1)
}
rootFS := os.DirFS(*root)
l := slog.New(slog.NewTextHandler(os.Stderr, nil))
l.Info("validating...",
"root", *root,