mirror of
https://github.com/rschamp/gh-pages.git
synced 2025-11-05 05:11:11 +08:00
Merge pull request #106 from donavon/feature/dw/cli-tag
Add a --tag option to the cli
This commit is contained in:
commit
b7e9b2f301
@ -19,6 +19,8 @@ program
|
|||||||
'The name of the remote', 'origin')
|
'The name of the remote', 'origin')
|
||||||
.option('-m, --message <message>',
|
.option('-m, --message <message>',
|
||||||
'commit message', 'Updates')
|
'commit message', 'Updates')
|
||||||
|
.option('-g, --tag <tag>',
|
||||||
|
'add tag to commit')
|
||||||
.option('-t, --dotfiles', 'Include dotfiles')
|
.option('-t, --dotfiles', 'Include dotfiles')
|
||||||
.option('-a, --add', 'Only add, and never remove existing files.')
|
.option('-a, --add', 'Only add, and never remove existing files.')
|
||||||
.option('-v, --remove <pattern>',
|
.option('-v, --remove <pattern>',
|
||||||
@ -33,6 +35,7 @@ ghpages.publish(path.join(process.cwd(), program.dist), {
|
|||||||
branch: program.branch,
|
branch: program.branch,
|
||||||
src: program.src,
|
src: program.src,
|
||||||
message: program.message,
|
message: program.message,
|
||||||
|
tag: program.tag,
|
||||||
dotfiles: !!program.dotfiles,
|
dotfiles: !!program.dotfiles,
|
||||||
add: !!program.add,
|
add: !!program.add,
|
||||||
only: program.remove,
|
only: program.remove,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user