diff --git a/cmd/build.go b/cmd/build.go index 53e13fe..65a6df5 100644 --- a/cmd/build.go +++ b/cmd/build.go @@ -41,13 +41,13 @@ To pass origial go build flags to goc command, place them after "--", see exampl # Build the current binary with cover variables injected. The binary will be generated in the current folder. goc build -# Build the current binary with cover variables injected, and set the registry center to http://127.0.0.1:7777 +# Build the current binary with cover variables injected, and set the registry center to http://127.0.0.1:7777. goc build --center=http://127.0.0.1:7777 -# Build the current binary with cover variables injected, and redirect output to /to/this/path +# Build the current binary with cover variables injected, and redirect output to /to/this/path. goc build -- -o /to/this/path -# Build the current binary with cover variables injected, and set necessary build flags: -ldflags "-extldflags -static" -tags="embed kodo" +# Build the current binary with cover variables injected, and set necessary build flags: -ldflags "-extldflags -static" -tags="embed kodo". goc build -- -ldflags "-extldflags -static" -tags="embed kodo" `, Run: func(cmd *cobra.Command, args []string) { diff --git a/cmd/install.go b/cmd/install.go index 8b973e2..bacd3c5 100644 --- a/cmd/install.go +++ b/cmd/install.go @@ -40,10 +40,10 @@ To pass origial go build flags to goc command, place them after "--", see exampl # Install all binaries with cover variables injected. The binary will be installed in $GOPATH/bin or $HOME/go/bin if directory existed. goc install -- ./... -# Install the current binary with cover variables injected, and set the registry center to http://127.0.0.1:7777 +# Install the current binary with cover variables injected, and set the registry center to http://127.0.0.1:7777. goc install --center=http://127.0.0.1:7777 -# Install the current binary with cover variables injected, and set necessary build flags: -ldflags "-extldflags -static" -tags="embed kodo" +# Install the current binary with cover variables injected, and set necessary build flags: -ldflags "-extldflags -static" -tags="embed kodo". goc build -- -ldflags "-extldflags -static" -tags="embed kodo" `, Run: func(cmd *cobra.Command, args []string) {