The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Giblog::Command::all - all command

DESCRIPTION

Giblog::Command::all is the command to execute "giblog build", "giblog save", "giblog publish", and "giblog deploy" at once.

USAGE

giblog all -m COMMIT_COMMENT REMOTE_REPOSITORY BRANCH
giblog all -m COMMIT_COMMENT --no-build REMOTE_REPOSITORY BRANCH
giblog all -m COMMIT_COMMENT --no-save REMOTE_REPOSITORY BRANCH
giblog all -m COMMIT_COMMENT --no-publish REMOTE_REPOSITORY BRANCH
giblog all -m COMMIT_COMMENT --no-deploy REMOTE_REPOSITORY BRANCH

METHODS

Giblog::Command::all inherits all methods from Giblog::Command and implements the following new ones.

run

$command->run('-m', $message, $remote_repository, $branch);
$command->run('-m', $message, '--no-build', $remote_repository, $branch);
$command->run('-m', $message, '--no-save', $remote_repository, $branch);
$command->run('-m', $message, '--no-publish', $remote_repository, $branch);
$command->run('-m', $message, '--no-deploy', $remote_repository, $branch);

all command executes the following git commands(giblog build, giblog save, giblog publish).

This is the same as the following command. In this example, the commit message is "Hello". the repository name is "origin". the branch name is "main".

giblog build
giblog save -m "Hello" origin main
giblog publish origin main
giblog deploy

If --no-build option is specified, "giblog build" is not executed.

If --no-save option is specified, "giblog save" is not executed.

If --no-publish option is specified, "giblog publish" is not executed.

If --no-deploy option is specified, "giblog deploy" is not executed.