continuserv, speculator: update dump-swagger call
dump-swagger now expects -o before its output path
This commit is contained in:
parent
56c3e5a627
commit
d6f892f894
2 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ func generate(dir string) (map[string][]byte, error) {
|
||||||
|
|
||||||
// cheekily dump the swagger docs into the gen directory so that it is
|
// cheekily dump the swagger docs into the gen directory so that it is
|
||||||
// easy to serve
|
// easy to serve
|
||||||
cmd = exec.Command("python", "dump-swagger.py", "gen/api-docs.json")
|
cmd = exec.Command("python", "dump-swagger.py", "-o", "gen/api-docs.json")
|
||||||
cmd.Dir = path.Join(dir, "scripts")
|
cmd.Dir = path.Join(dir, "scripts")
|
||||||
cmd.Stderr = &b
|
cmd.Stderr = &b
|
||||||
if err := cmd.Run(); err != nil {
|
if err := cmd.Run(); err != nil {
|
||||||
|
|
|
@ -159,7 +159,7 @@ func generate(dir string) error {
|
||||||
|
|
||||||
// cheekily dump the swagger docs into the gen directory so they can be
|
// cheekily dump the swagger docs into the gen directory so they can be
|
||||||
// served by serveSpec
|
// served by serveSpec
|
||||||
cmd = exec.Command("python", "dump-swagger.py", "gen/api-docs.json")
|
cmd = exec.Command("python", "dump-swagger.py", "-o", "gen/api-docs.json")
|
||||||
cmd.Dir = path.Join(dir, "scripts")
|
cmd.Dir = path.Join(dir, "scripts")
|
||||||
cmd.Stderr = &b
|
cmd.Stderr = &b
|
||||||
if err := cmd.Run(); err != nil {
|
if err := cmd.Run(); err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue