mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-07 13:31:37 +02:00
fix: man pages
closes #3048 Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
parent
dbf2d0e293
commit
0ba753c496
15
cmd/build.go
15
cmd/build.go
@ -47,20 +47,13 @@ func newBuildCmd() *buildCmd {
|
||||
Use: "build",
|
||||
Aliases: []string{"b"},
|
||||
Short: "Builds the current project",
|
||||
Long: `The ` + "`goreleaser build`" + ` command is analogous to the
|
||||
` + "`go build`" + ` command, in the sense it only builds binaries.
|
||||
Long: `The ` + "`goreleaser build`" + ` command is analogous to the ` + "`go build`" + ` command, in the sense it only builds binaries.
|
||||
|
||||
Its itented usage is, for example, within Makefiles to avoid setting up
|
||||
ldflags and etc in several places. That way, the GoReleaser config becomes the
|
||||
source of truth for how the binaries should be built.
|
||||
Its itented usage is, for example, within Makefiles to avoid setting up ldflags and etc in several places. That way, the GoReleaser config becomes the source of truth for how the binaries should be built.
|
||||
|
||||
It also allows you to generate a local build for your current machine only using
|
||||
the ` + "`--single-target`" + ` option, and specific build IDs using the
|
||||
` + "`--id`" + ` option in case you have more than one.
|
||||
It also allows you to generate a local build for your current machine only using the ` + "`--single-target`" + ` option, and specific build IDs using the ` + "`--id`" + ` option in case you have more than one.
|
||||
|
||||
When using ` + "`--single-target`" + `, the ` + "`GOOS`" + ` and
|
||||
` + "`GOARCH`" + ` environment variables are used to determine the target,
|
||||
defaulting to the current's machine target if not set.
|
||||
When using ` + "`--single-target`" + `, the ` + "`GOOS`" + ` and ` + "`GOARCH`" + ` environment variables are used to determine the target, defaulting to the current's machine target if not set.
|
||||
`,
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
|
@ -55,14 +55,11 @@ func newRootCmd(version string, exit func(int)) *rootCmd {
|
||||
Use: "goreleaser",
|
||||
Short: "Deliver Go binaries as fast and easily as possible",
|
||||
Long: `GoReleaser is a release automation tool for Go projects.
|
||||
Its goal is to simplify the build, release and publish steps while providing
|
||||
variant customization options for all steps.
|
||||
Its goal is to simplify the build, release and publish steps while providing variant customization options for all steps.
|
||||
|
||||
GoReleaser is built for CI tools, you only need to download and execute it
|
||||
in your build script. Of course, you can also install it locally if you wish.
|
||||
GoReleaser is built for CI tools, you only need to download and execute it in your build script. Of course, you can also install it locally if you wish.
|
||||
|
||||
You can also customize your entire release process through a
|
||||
single .goreleaser.yaml file.
|
||||
You can also customize your entire release process through a single .goreleaser.yaml file.
|
||||
`,
|
||||
Version: version,
|
||||
SilenceUsage: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user