mirror of
https://github.com/containers/podman.git
synced 2025-08-05 19:02:37 +08:00
make lint: include docs/
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
@ -181,7 +181,7 @@ func generateIndex(methods []funcDescriber, types []typeDescriber, errors []err,
|
||||
|
||||
}
|
||||
for _, outArg := range method.returnParams {
|
||||
outArgs = append(outArgs, fmt.Sprintf("%s", outArg.paramKind))
|
||||
outArgs = append(outArgs, outArg.paramKind)
|
||||
|
||||
}
|
||||
b.WriteString(fmt.Sprintf("\n[func %s(%s) %s](#%s)\n", method.Name, strings.Join(inArgs, ", "), strings.Join(outArgs, ", "), method.Name))
|
||||
@ -272,5 +272,8 @@ func main() {
|
||||
out = generateTypeDescriptions(types, out)
|
||||
out.WriteString("## Errors\n")
|
||||
out = generateErrorDescriptions(errors, out)
|
||||
ioutil.WriteFile(mdFile, out.Bytes(), 0755)
|
||||
if err := ioutil.WriteFile(mdFile, out.Bytes(), 0755); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error writing file: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user