File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package main
33import (
44 "errors"
55 "fmt"
6+ "log"
67 "os"
78 "path/filepath"
89 "sort"
@@ -13,9 +14,26 @@ import (
1314 "golang.org/x/text/language"
1415)
1516
17+ // copied from generate/next_generator.go
18+ func GenPlaceholderPathForNext () {
19+ dir := "../web_ui/frontend/out"
20+ if err := os .MkdirAll (dir , 0755 ); err != nil {
21+ log .Fatalf ("error: %v" , err )
22+ }
23+
24+ filePath := filepath .Join (dir , "placeholder" )
25+
26+ file , err := os .Create (filePath )
27+ if err != nil {
28+ log .Fatalf ("error: %v" , err )
29+ }
30+ file .Close ()
31+ }
32+
1633// generateCLIDocs creates per-command docs under the given directory. If the path
1734// is relative, it is resolved against the repository root (directory containing go.mod).
1835func generateCLIDocs (outputDir string ) error {
36+ GenPlaceholderPathForNext ()
1937 resolvedDir , err := resolveOutputPath (outputDir )
2038 if err != nil {
2139 return err
You can’t perform that action at this time.
0 commit comments