Skip to content

Commit

Permalink
Merge pull request #2379 from carapace-sh/goreleaser-updates-1.26
Browse files Browse the repository at this point in the history
goreleaser: updates from v1.26
  • Loading branch information
rsteube authored May 9, 2024
2 parents 4162e5d + b30eb4d commit c2fa554
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 27 deletions.
6 changes: 3 additions & 3 deletions completers/goreleaser_completer/cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ var buildCmd = &cobra.Command{
func init() {
carapace.Gen(buildCmd).Standalone()

buildCmd.Flags().Bool("clean", false, "Remove the dist folder before building")
buildCmd.Flags().Bool("clean", false, "Removes the 'dist' directory before building")
buildCmd.Flags().StringP("config", "f", "", "Load configuration from file")
buildCmd.Flags().Bool("deprecated", false, "Force print the deprecation message - tests only")
buildCmd.Flags().StringSlice("id", []string{}, "Builds only the specified build ids")
buildCmd.Flags().StringP("output", "o", "", "Copy the binary to the path after the build. Only taken into account when using --single-target and a single id (either with --id or if configuration only has one build)")
buildCmd.Flags().StringP("parallelism", "p", "", "Amount tasks to run concurrently (default: number of CPUs)")
buildCmd.Flags().Bool("rm-dist", false, "Remove the dist folder before building")
buildCmd.Flags().StringP("parallelism", "p", "", "Number of tasks to run concurrently (default: number of CPUs)")
buildCmd.Flags().Bool("rm-dist", false, "Removes the 'dist' directory before building")
buildCmd.Flags().Bool("single-target", false, "Builds only for current GOOS and GOARCH, regardless of what's set in the configuration file")
buildCmd.Flags().StringSlice("skip", []string{}, "Skip the given options (valid options are: before, post-hooks, pre-hooks, validate)")
buildCmd.Flags().Bool("skip-before", false, "Skips global before hooks")
Expand Down
21 changes: 0 additions & 21 deletions completers/goreleaser_completer/cmd/generateFigSpec.go

This file was deleted.

7 changes: 4 additions & 3 deletions completers/goreleaser_completer/cmd/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ func init() {
carapace.Gen(releaseCmd).Standalone()

releaseCmd.Flags().Bool("auto-snapshot", false, "Automatically sets --snapshot if the repository is dirty")
releaseCmd.Flags().Bool("clean", false, "Removes the dist folder")
releaseCmd.Flags().Bool("clean", false, "Removes the 'dist' directory")
releaseCmd.Flags().StringP("config", "f", "", "Load configuration from file")
releaseCmd.Flags().Bool("deprecated", false, "Force print the deprecation message - tests only")
releaseCmd.Flags().Bool("draft", false, "Whether to set the release to draft. Overrides release.draft in the configuration file")
releaseCmd.Flags().Bool("fail-fast", false, "Whether to abort the release publishing on the first error")
releaseCmd.Flags().StringP("parallelism", "p", "", "Amount tasks to run concurrently (default: number of CPUs)")
releaseCmd.Flags().String("release-footer", "", "Load custom release notes footer from a markdown file")
Expand All @@ -27,8 +28,8 @@ func init() {
releaseCmd.Flags().String("release-header-tmpl", "", "Load custom release notes header from a templated markdown file (overrides --release-header)")
releaseCmd.Flags().String("release-notes", "", "Load custom release notes from a markdown file (will skip GoReleaser changelog generation)")
releaseCmd.Flags().String("release-notes-tmpl", "", "Load custom release notes from a templated markdown file (overrides --release-notes)")
releaseCmd.Flags().Bool("rm-dist", false, "Removes the dist folder")
releaseCmd.Flags().StringSlice("skip", []string{}, "Skip the given options (valid options are announce, aur, before, docker, homebrew, ko, nix, publish, sbom, scoop, sign, snapcraft, validate, winget)")
releaseCmd.Flags().Bool("rm-dist", false, "Removes the 'dist' directory")
releaseCmd.Flags().StringSlice("skip", []string{}, "Skip the given options (valid options are announce, aur, before, chocolatey, docker, homebrew, ko, nfpm, nix, notarize, publish, sbom, scoop, sign, snapcraft, validate, winget)")
releaseCmd.Flags().Bool("skip-announce", false, "Skips announcing releases (implies --skip=validate)")
releaseCmd.Flags().Bool("skip-before", false, "Skips global before hooks")
releaseCmd.Flags().Bool("skip-docker", false, "Skips Docker Images/Manifests builds")
Expand Down

0 comments on commit c2fa554

Please sign in to comment.