mirror of
https://github.com/scratchfoundation/gh-pages.git
synced 2024-12-01 03:27:05 -05:00
cli: add --no-push
flag to allow testing
This commit is contained in:
parent
c11cfac67e
commit
7139ad7364
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ program
|
|||
'commit message', 'Updates')
|
||||
.option('-t, --dotfiles', 'Include dotfiles')
|
||||
.option('-a, --add', 'Only add, and never remove existing files.')
|
||||
.option('-n, --no-push', 'Commit only (with no push)')
|
||||
.parse(process.argv);
|
||||
|
||||
ghpages.publish(path.join(process.cwd(), program.dist), {
|
||||
|
@ -27,6 +28,7 @@ ghpages.publish(path.join(process.cwd(), program.dist), {
|
|||
message: program.message,
|
||||
dotfiles: !!program.dotfiles,
|
||||
add: !!program.add,
|
||||
push: !program.noPush,
|
||||
logger: function(message) {
|
||||
process.stderr.write(message + '\n');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue