You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/minikube/cmd/generate-docs.go
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ import (
27
27
"k8s.io/minikube/pkg/minikube/style"
28
28
)
29
29
30
-
varpathstring
30
+
vardocsPathstring
31
31
32
32
// generateDocs represents the generate-docs command
33
33
vargenerateDocs=&cobra.Command{
@@ -38,20 +38,20 @@ var generateDocs = &cobra.Command{
38
38
Hidden: true,
39
39
Run: func(cmd*cobra.Command, args []string) {
40
40
// if directory does not exist
41
-
docsPath, err:=os.Stat(path)
42
-
iferr!=nil||!docsPath.IsDir() {
41
+
st, err:=os.Stat(docsPath)
42
+
iferr!=nil||!st.IsDir() {
43
43
exit.Message(reason.Usage, "Unable to generate the documentation. Please ensure that the path specified is a directory, exists & you have permission to write to it.")
0 commit comments