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