Skip to content

Commit

Permalink
chore: update dev guide to get version of gapic-showcase to install. (#…
Browse files Browse the repository at this point in the history
…2451)

This addition removes the trailing ANSI escape sequence (`\x1b[0m`) on
the returned version.
This regex `\x1b\[[0-9;]*m` matches ANSI escape sequences.
  • Loading branch information
zhumin8 authored Feb 8, 2024
1 parent 5c95472 commit cbed743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion showcase/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ update to a compatible client version in `./WORKSPACE`.
```shell
# Install the showcase server version defined in gapic-showcase/pom.xml
cd showcase
go install github.com/googleapis/gapic-showcase/cmd/gapic-showcase@v"$(cd gapic-showcase;mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)"
go install github.com/googleapis/gapic-showcase/cmd/gapic-showcase@v"$(cd gapic-showcase;mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout |sed 's/\x1b\[[0-9;]*m//g')"
PATH=$PATH:`go env GOPATH`/bin
gapic-showcase --help
> Root command of gapic-showcase
Expand Down

0 comments on commit cbed743

Please sign in to comment.