mirror of
https://github.com/scratchfoundation/gh-pages.git
synced 2024-11-28 18:25:38 -05:00
Merge pull request #23 from cvan/repo-in-cli
Support `--repo` CLI option.
This commit is contained in:
commit
08e470c01b
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,8 @@ program
|
||||||
'base directory for all source files')
|
'base directory for all source files')
|
||||||
.option('-s, --src <src>',
|
.option('-s, --src <src>',
|
||||||
'pattern used to select which files should be published', '**/*')
|
'pattern used to select which files should be published', '**/*')
|
||||||
|
.option('-r, --repo <repo>',
|
||||||
|
'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('-t, --dotfiles', 'Include dotfiles')
|
.option('-t, --dotfiles', 'Include dotfiles')
|
||||||
|
@ -17,6 +19,7 @@ program
|
||||||
.parse(process.argv);
|
.parse(process.argv);
|
||||||
|
|
||||||
ghpages.publish(path.join(process.cwd(), program.dist), {
|
ghpages.publish(path.join(process.cwd(), program.dist), {
|
||||||
|
repo: program.repo,
|
||||||
branch: program.branch,
|
branch: program.branch,
|
||||||
src: program.src,
|
src: program.src,
|
||||||
dotfiles: !!program.dotfiles,
|
dotfiles: !!program.dotfiles,
|
||||||
|
|
Loading…
Reference in a new issue