Skip to content

Commit

Permalink
feat(bundler): add skip description option
Browse files Browse the repository at this point in the history
  • Loading branch information
WerdoxDev committed Sep 20, 2024
1 parent 12d807c commit aea6702
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/huginn-bundler/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ const main = defineCommand({
description: "A SemVer string for the build or upload or deleting",
valueHint: "SEMVER",
},
skip: {
type: "boolean",
description: "Skips prompting for a description. Useful for nightly builds.",
default: false,
required: false,
},
deleteLocal: {
type: "boolean",
alias: "l",
Expand Down Expand Up @@ -143,7 +149,7 @@ const main = defineCommand({
}

if (args.upload) {
const description = await consola.prompt("Enter a description:", { type: "text" });
const description = args.skip ? "" : await consola.prompt("Enter a description:", { type: "text" });
await createRelease(args.version, description, args.draft);
}
if (args.amazon) {
Expand Down

0 comments on commit aea6702

Please sign in to comment.