Skip to content

Commit

Permalink
cli: add --no-push flag to allow testing
Browse files Browse the repository at this point in the history
  • Loading branch information
amtrack committed Jan 28, 2016
1 parent c11cfac commit b4c362c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/gh-pages
Original file line number Diff line number Diff line change
Expand Up @@ -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), {
Expand All @@ -27,6 +28,7 @@ ghpages.publish(path.join(process.cwd(), program.dist), {
message: program.message,
dotfiles: !!program.dotfiles,
add: !!program.add,
push: !program.commitOnly,
logger: function(message) {
process.stderr.write(message + '\n');
}
Expand Down

0 comments on commit b4c362c

Please sign in to comment.