mirror of
https://github.com/rschamp/gh-pages.git
synced 2025-11-05 13:21:11 +08:00
Merge pull request #51 from MoOx/silent-bin
Add --silent option to the bin
This commit is contained in:
commit
28a1115a0f
@ -12,6 +12,7 @@ program
|
|||||||
'pattern used to select which files should be published', '**/*')
|
'pattern used to select which files should be published', '**/*')
|
||||||
.option('-r, --repo <repo>',
|
.option('-r, --repo <repo>',
|
||||||
'URL of the repository you\'ll be pushing to')
|
'URL of the repository you\'ll be pushing to')
|
||||||
|
.option('-x, --silent', 'Do not output the repository url')
|
||||||
.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>',
|
.option('-m, --message <message>',
|
||||||
@ -23,6 +24,7 @@ program
|
|||||||
|
|
||||||
ghpages.publish(path.join(process.cwd(), program.dist), {
|
ghpages.publish(path.join(process.cwd(), program.dist), {
|
||||||
repo: program.repo,
|
repo: program.repo,
|
||||||
|
silent: !!program.silent,
|
||||||
branch: program.branch,
|
branch: program.branch,
|
||||||
src: program.src,
|
src: program.src,
|
||||||
message: program.message,
|
message: program.message,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user