diff --git a/cmd/healthcheck.go b/cmd/healthcheck.go index 2af4a083b..529601892 100644 --- a/cmd/healthcheck.go +++ b/cmd/healthcheck.go @@ -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 diff --git a/www/docs/cmd/goreleaser.md b/www/docs/cmd/goreleaser.md index 54a91204f..b6b0e9df0 100644 --- a/www/docs/cmd/goreleaser.md +++ b/www/docs/cmd/goreleaser.md @@ -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 diff --git a/www/docs/static/schema-pro.json b/www/docs/static/schema-pro.json index 8d72a87e1..3b85de8ef 100644 --- a/www/docs/static/schema-pro.json +++ b/www/docs/static/schema-pro.json @@ -492,7 +492,14 @@ "default": "" }, "skip": { - "type": "boolean" + "oneOf": [ + { + "type": "string" + }, + { + "type": "boolean" + } + ] }, "use": { "type": "string", diff --git a/www/mkdocs.yml b/www/mkdocs.yml index ec81cb2bf..7a0310cb7 100644 --- a/www/mkdocs.yml +++ b/www/mkdocs.yml @@ -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