Skip to content

Commit

Permalink
feat(goreleaser): update spec (withfig#2165)
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 authored Nov 30, 2023
1 parent f2ba814 commit 3d34126
Showing 1 changed file with 52 additions and 10 deletions.
62 changes: 52 additions & 10 deletions src/goreleaser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,28 @@ const completionSpec: Fig.Spec = {
description:
"Builds only for current GOOS and GOARCH, regardless of what's set in the configuration file",
},
{ name: "--skip-before", description: "Skips global before hooks" },
{
name: "--skip",
description:
"Skip the given options (valid options are before, post-hooks, pre-hooks, validate)",
isRepeatable: true,
args: { name: "skip" },
},
{
name: "--skip-before",
description: "Skips global before hooks",
hidden: true,
},
{
name: "--skip-post-hooks",
description: "Skips all post-build hooks",
hidden: true,
},
{
name: "--skip-validate",
description: "Skips several sanity checks",
hidden: true,
},
{ name: "--skip-validate", description: "Skips several sanity checks" },
{
name: "--snapshot",
description:
Expand Down Expand Up @@ -238,27 +254,53 @@ const completionSpec: Fig.Spec = {
description: "Removes the dist folder",
hidden: true,
},
{
name: "--skip",
description:
"Skip the given options (valid options are announce, aur, before, docker, homebrew, ko, nix, publish, sbom, scoop, sign, snapcraft, validate, winget)",
isRepeatable: true,
args: { name: "skip" },
},
{
name: "--skip-announce",
description: "Skips announcing releases (implies --skip-validate)",
description: "Skips announcing releases (implies --skip=validate)",
hidden: true,
},
{
name: "--skip-before",
description: "Skips global before hooks",
hidden: true,
},
{ name: "--skip-before", description: "Skips global before hooks" },
{
name: "--skip-docker",
description: "Skips Docker Images/Manifests builds",
hidden: true,
},
{ name: "--skip-ko", description: "Skips Ko builds" },
{ name: "--skip-ko", description: "Skips Ko builds", hidden: true },
{
name: "--skip-publish",
description: "Skips publishing artifacts (implies --skip-announce)",
description: "Skips publishing artifacts (implies --skip=announce)",
hidden: true,
},
{
name: "--skip-sbom",
description: "Skips cataloging artifacts",
hidden: true,
},
{
name: "--skip-sign",
description: "Skips signing artifacts",
hidden: true,
},
{
name: "--skip-validate",
description: "Skips git checks",
hidden: true,
},
{ name: "--skip-sbom", description: "Skips cataloging artifacts" },
{ name: "--skip-sign", description: "Skips signing artifacts" },
{ name: "--skip-validate", description: "Skips git checks" },
{
name: "--snapshot",
description:
"Generate an unversioned snapshot release, skipping all validations and without publishing any artifacts (implies --skip-publish, --skip-announce and --skip-validate)",
"Generate an unversioned snapshot release, skipping all validations and without publishing any artifacts (implies --skip=announce,publish,validate)",
},
{
name: "--timeout",
Expand Down

0 comments on commit 3d34126

Please sign in to comment.