Skip to content

Commit

Permalink
tools/generator-go-sdk: updating the default port to 8080 to match …
Browse files Browse the repository at this point in the history
…Data API V2
  • Loading branch information
tombuildsstuff committed Jun 28, 2024
1 parent 9baac13 commit 1db13b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/generator-go-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ By default, the generated Go SDK will be output to your desktop (`~/Desktop/gene

The `generator-go-sdk` tool supports a number of command-line arguments:

* `--data-api=http://some-uri:2022` - specifies the URI for the Data API (defaults to `http://localhost:5000`).
* `--data-api=http://some-uri:2022` - specifies the URI for the Data API (defaults to `http://localhost:8080`).
* `--output-dir=/some/custom/path` - specifies the directory where the Go SDK should be generated (defaults to `~/Desktop/generated-sdk-dev`).
* `--services=Service1,Service2` - generates the Go SDK for only the specified Services for expediency - the Service Names coming from the `name` field [within the Configuration File that defines which Service should be imported](`../../config/resource-manager.hcl`).

Expand Down
2 changes: 1 addition & 1 deletion tools/generator-go-sdk/internal/cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (g GenerateCommand) Run(args []string) int {
var serviceNames string

f := flag.NewFlagSet("generator-go-sdk", flag.ExitOnError)
f.StringVar(&input.apiServerEndpoint, "data-api", "http://localhost:5000", "-data-api=http://localhost:5000")
f.StringVar(&input.apiServerEndpoint, "data-api", "http://localhost:8080", "-data-api=http://localhost:8080")
f.StringVar(&input.outputDirectory, "output-dir", "", "-output-dir=../generated-sdk-dev")
f.StringVar(&serviceNames, "services", "", "A list of comma separated Service named from the Data API to import")
if err := f.Parse(args); err != nil {
Expand Down

0 comments on commit 1db13b0

Please sign in to comment.