mirror of
https://github.com/rschamp/gh-pages.git
synced 2026-04-11 02:04:32 +08:00
Added support for the --add option to cli.
This commit is contained in:
@@ -13,12 +13,14 @@ program
|
|||||||
.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('-t, --dotfiles', 'Include dotfiles')
|
.option('-t, --dotfiles', 'Include dotfiles')
|
||||||
|
.option('-a, --add', 'Only add, and never remove existing files.')
|
||||||
.parse(process.argv);
|
.parse(process.argv);
|
||||||
|
|
||||||
ghpages.publish(path.join(process.cwd(), program.dist), {
|
ghpages.publish(path.join(process.cwd(), program.dist), {
|
||||||
branch: program.branch,
|
branch: program.branch,
|
||||||
src: program.src,
|
src: program.src,
|
||||||
dotfiles: !!program.dotfiles,
|
dotfiles: !!program.dotfiles,
|
||||||
|
add: !!program.add,
|
||||||
logger: function(message) {
|
logger: function(message) {
|
||||||
console.log(message);
|
console.log(message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user