Skip to content

Commit

Permalink
remove dart format segment form ExampleAndReadmeEdit method (#236)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Joudat <[email protected]>
  • Loading branch information
lambdaR authored Apr 21, 2022
1 parent 0190e28 commit 16d3249
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions cmd/m3o-client-gen/dart_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"strings"
"text/template"
Expand Down Expand Up @@ -334,14 +333,6 @@ func (d *dartG) ExampleAndReadmeEdit(examplesPath, serviceName, endpoint, title
fmt.Println("Failed to append to schema file", err)
os.Exit(1)
}

cmd := exec.Command("dart", "format", ".")
cmd.Dir = filepath.Join(examplesPath, "dart", serviceName, endpoint)
outp, err := cmd.CombinedOutput()
if err != nil {
fmt.Printf("Problem with '%v' example '%v': %v\n", serviceName, endpoint, string(outp))
os.Exit(1)
}
}

func schemaToDartExample(exampleJSON map[string]interface{}) string {
Expand Down

0 comments on commit 16d3249

Please sign in to comment.