mirror of
https://github.com/scratchfoundation/gh-pages.git
synced 2024-11-28 18:25:38 -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')
|
'commit message', 'Updates')
|
||||||
.option('-t, --dotfiles', 'Include dotfiles')
|
.option('-t, --dotfiles', 'Include dotfiles')
|
||||||
.option('-a, --add', 'Only add, and never remove existing files.')
|
.option('-a, --add', 'Only add, and never remove existing files.')
|
||||||
|
.option('-n, --no-push', 'Commit only (with no push)')
|
||||||
.parse(process.argv);
|
.parse(process.argv);
|
||||||
|
|
||||||
ghpages.publish(path.join(process.cwd(), program.dist), {
|
ghpages.publish(path.join(process.cwd(), program.dist), {
|
||||||
|
@ -27,6 +28,7 @@ ghpages.publish(path.join(process.cwd(), program.dist), {
|
||||||
message: program.message,
|
message: program.message,
|
||||||
dotfiles: !!program.dotfiles,
|
dotfiles: !!program.dotfiles,
|
||||||
add: !!program.add,
|
add: !!program.add,
|
||||||
|
push: !program.noPush,
|
||||||
logger: function(message) {
|
logger: function(message) {
|
||||||
process.stderr.write(message + '\n');
|
process.stderr.write(message + '\n');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue