From 13b22b1afa4c47c7c4fbc649f23532949573046c Mon Sep 17 00:00:00 2001 From: JesseBrault0709 <62299747+JesseBrault0709@users.noreply.github.com> Date: Mon, 27 May 2024 10:53:15 +0200 Subject: [PATCH] Added 'default' as default build name for ssg-cli. --- .../groovy/com/jessebrault/ssg/AbstractBuildCommand.groovy | 5 +++-- test-ssg-project/.gitignore | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cli/src/main/groovy/com/jessebrault/ssg/AbstractBuildCommand.groovy b/cli/src/main/groovy/com/jessebrault/ssg/AbstractBuildCommand.groovy index 84ee46f..65ea35e 100644 --- a/cli/src/main/groovy/com/jessebrault/ssg/AbstractBuildCommand.groovy +++ b/cli/src/main/groovy/com/jessebrault/ssg/AbstractBuildCommand.groovy @@ -16,11 +16,12 @@ abstract class AbstractBuildCommand extends AbstractSubCommand { private static final Logger logger = LogManager.getLogger(AbstractBuildCommand) @CommandLine.Option( - names = ['-b', '--build'], + names = ['-b', '--build', '--build-name'], description = 'The name of a build to execute. May be the name of a script (without the .groovy extension) in a build script dir, or a fully-qualified-name of a build script on the classpath or nested in a build script dir.', arity = '1..*', required = true, - paramLabel = 'buildName' + paramLabel = 'buildName', + defaultValue = 'default' ) Set requestedBuilds diff --git a/test-ssg-project/.gitignore b/test-ssg-project/.gitignore index e1eb798..18663ff 100644 --- a/test-ssg-project/.gitignore +++ b/test-ssg-project/.gitignore @@ -2,3 +2,4 @@ bin .ssg testBuild dist +default