mirror of
https://github.com/scratchfoundation/gh-pages.git
synced 2025-03-14 06:29:51 -04:00
Merge pull request #26 from n1k0/cli-add-option
Added support for the --add option to cli.
This commit is contained in:
commit
391ef97255
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue