mirror of
https://github.com/rschamp/gh-pages.git
synced 2025-11-05 13:21:11 +08:00
commit
8c8b52967c
@ -14,6 +14,8 @@ program
|
|||||||
'URL of the repository you\'ll be pushing to')
|
'URL of the repository you\'ll be pushing to')
|
||||||
.option('-b, --branch <branch>',
|
.option('-b, --branch <branch>',
|
||||||
'name of the branch you\'ll be pushing to', 'gh-pages')
|
'name of the branch you\'ll be pushing to', 'gh-pages')
|
||||||
|
.option('-m, --message <message>',
|
||||||
|
'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.')
|
||||||
.parse(process.argv);
|
.parse(process.argv);
|
||||||
@ -22,6 +24,7 @@ ghpages.publish(path.join(process.cwd(), program.dist), {
|
|||||||
repo: program.repo,
|
repo: program.repo,
|
||||||
branch: program.branch,
|
branch: program.branch,
|
||||||
src: program.src,
|
src: program.src,
|
||||||
|
message: program.message,
|
||||||
dotfiles: !!program.dotfiles,
|
dotfiles: !!program.dotfiles,
|
||||||
add: !!program.add,
|
add: !!program.add,
|
||||||
logger: function(message) {
|
logger: function(message) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user