Skip to content

Commit

Permalink
Merge branch 'v3' into file_server_redux
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael authored Sep 10, 2024
2 parents 75b1e8d + 9d9f578 commit 2641edb
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 25 deletions.
33 changes: 17 additions & 16 deletions cmd/goa/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,26 @@ func main() {
path string
offset int
)
{
if len(os.Args) == 1 {
usage()
}
if len(os.Args) == 1 {
usage()
return
}

switch os.Args[1] {
case "version":
fmt.Println("Goa version " + goa.Version())
os.Exit(0)
case "gen", "example":
if len(os.Args) == 2 {
usage()
}
cmd = os.Args[1]
path = os.Args[2]
offset = 2
default:
switch os.Args[1] {
case "version":
fmt.Println("Goa version " + goa.Version())
os.Exit(0)
case "gen", "example":
if len(os.Args) == 2 {
usage()
return
}
cmd = os.Args[1]
path = os.Args[2]
offset = 2
default:
usage()
return
}

var (
Expand Down
6 changes: 3 additions & 3 deletions cmd/goa/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ func TestCmdLine(t *testing.T) {
}{
"gen": {"gen " + testPkg, false, "gen", testPkg, ".", false},

"invalid": {"invalid " + testPkg, true, "", "", ".", false},
"empty": {"", true, "", "", ".", false},
"invalid gen": {"invalid gen" + testPkg, true, "", "", ".", false},
"invalid": {"invalid " + testPkg, true, "", "", "", false},
"empty": {"", true, "", "", "", false},
"invalid gen": {"invalid gen" + testPkg, true, "", "", "", false},

"output": {"gen " + testPkg + " -output " + testOutput, false, "gen", testPkg, testOutput, false},
"output short": {"gen " + testPkg + " -o " + testOutput, false, "gen", testPkg, testOutput, false},
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ require (
github.com/manveru/faker v0.0.0-20171103152722-9fbc68a78c4d
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.9.0
golang.org/x/text v0.17.0
golang.org/x/text v0.18.0
golang.org/x/tools v0.24.0
google.golang.org/grpc v1.65.0
google.golang.org/grpc v1.66.1
google.golang.org/protobuf v1.34.2
gopkg.in/yaml.v3 v3.0.1
)
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=
golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.23.0 h1:YfKFowiIMvtgl1UERQoTPPToxltDeZfbj4H7dVUCwmM=
golang.org/x/sys v0.23.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc=
golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224=
golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
golang.org/x/tools v0.24.0 h1:J1shsA93PJUEVaUSaay7UXAyE8aimq3GW0pjlolpa24=
golang.org/x/tools v0.24.0/go.mod h1:YhNqVBIfWHdzvTLs0d8LCuMhkKUgSUKldakyV7W/WDQ=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240723171418-e6d459c13d2a h1:hqK4+jJZXCU4pW7jsAdGOVFIfLHQeV7LaizZKnZ84HI=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240723171418-e6d459c13d2a/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY=
google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc=
google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ=
google.golang.org/grpc v1.66.1 h1:hO5qAXR19+/Z44hmvIM4dQFMSYX9XcWsByfoxutBpAM=
google.golang.org/grpc v1.66.1/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y=
google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg=
google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down

0 comments on commit 2641edb

Please sign in to comment.