1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

docs: updates

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos A Becker 2023-03-03 12:57:54 -03:00
parent 68cd12b506
commit 4c44ecedf8
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
4 changed files with 14 additions and 7 deletions

View File

@ -17,10 +17,9 @@ import (
)
type healthcheckCmd struct {
cmd *cobra.Command
config string
quiet bool
deprecated bool
cmd *cobra.Command
config string
quiet bool
}
func newHealthcheckCmd() *healthcheckCmd {
@ -29,6 +28,7 @@ func newHealthcheckCmd() *healthcheckCmd {
Use: "healthcheck",
Aliases: []string{"hc"},
Short: "Checks if needed tools are installed",
Long: `Check if the needed tools are available in your $PATH, exits 1 if any of them are missing.`,
SilenceUsage: true,
SilenceErrors: true,
Args: cobra.NoArgs,
@ -42,7 +42,6 @@ func newHealthcheckCmd() *healthcheckCmd {
return err
}
ctx := context.New(cfg)
ctx.Deprecated = root.deprecated
if err := ctrlc.Default.Run(ctx, func() error {
log.Info(boldStyle.Render("checking tools..."))
@ -83,7 +82,6 @@ func newHealthcheckCmd() *healthcheckCmd {
cmd.Flags().StringVarP(&root.config, "config", "f", "", "Configuration file")
cmd.Flags().BoolVarP(&root.quiet, "quiet", "q", false, "Quiet mode: no output")
cmd.Flags().BoolVar(&root.deprecated, "deprecated", false, "Force print the deprecation message - tests only")
_ = cmd.Flags().MarkHidden("deprecated")
root.cmd = cmd

View File

@ -29,6 +29,7 @@ Check out our website for more information, examples and documentation: https://
* [goreleaser check](/cmd/goreleaser_check/) - Checks if configuration is valid
* [goreleaser completion](/cmd/goreleaser_completion/) - Generate the autocompletion script for the specified shell
* [goreleaser continue](/cmd/goreleaser_continue/) - Continues a previously prepared release
* [goreleaser healthcheck](/cmd/goreleaser_healthcheck/) - Checks if needed tools are installed
* [goreleaser init](/cmd/goreleaser_init/) - Generates a .goreleaser.yaml file
* [goreleaser jsonschema](/cmd/goreleaser_jsonschema/) - outputs goreleaser's JSON schema
* [goreleaser publish](/cmd/goreleaser_publish/) - Publishes a previously prepared release

9
www/docs/static/schema-pro.json generated vendored
View File

@ -492,7 +492,14 @@
"default": ""
},
"skip": {
"type": "boolean"
"oneOf": [
{
"type": "string"
},
{
"type": "boolean"
}
]
},
"use": {
"type": "string",

View File

@ -152,6 +152,7 @@ nav:
- Command Line Usage:
- cmd/goreleaser.md
- cmd/goreleaser_init.md
- cmd/goreleaser_healthcheck.md
- cmd/goreleaser_check.md
- cmd/goreleaser_changelog.md
- cmd/goreleaser_build.md