From cbed743cce37d59ce8bb74c287d7ec3aad2aef22 Mon Sep 17 00:00:00 2001 From: Min Zhu Date: Thu, 8 Feb 2024 16:37:23 -0500 Subject: [PATCH] chore: update dev guide to get version of gapic-showcase to install. (#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. --- showcase/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/showcase/README.md b/showcase/README.md index b4987b1c15..4bd35c4252 100644 --- a/showcase/README.md +++ b/showcase/README.md @@ -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