Update doc generator to ignore tests directory

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau 2021-06-24 21:01:49 +02:00
parent c99e39ec9c
commit 51fe199a39

View File

@ -337,6 +337,11 @@ func walkStdlib(ctx context.Context, output, format string) {
return nil
}
// Ignore tests directories
if strings.Contains(p, "tests") {
return nil
}
pkgName := fmt.Sprintf("alpha.dagger.io/%s", p)
lg.Info().Str("package", pkgName).Str("format", format).Msg("generating doc")
val, err := loadCode(pkgName)