From c222b57783a6eb9478e75daf405ed6599da53ed3 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Mon, 6 Nov 2023 23:51:50 -0300 Subject: [PATCH] feat: update spec --- src/goreleaser.ts | 62 +++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 52 insertions(+), 10 deletions(-) diff --git a/src/goreleaser.ts b/src/goreleaser.ts index 67cd4b9c58f7..4f3f5244ab7f 100644 --- a/src/goreleaser.ts +++ b/src/goreleaser.ts @@ -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: @@ -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",