resin sync: add --after option

This commit is contained in:
Kostas Lekkas 2016-07-26 18:01:32 +03:00
parent 42d0b52df7
commit 6b00bbc73a

View File

@ -58,6 +58,7 @@ module.exports =
uuid: 7cf02a6
destination: '/usr/src/app'
before: 'echo Hello'
after: 'echo Done'
ignore:
- .git
- node_modules/
@ -71,7 +72,7 @@ module.exports =
Examples:
$ resin sync 7cf02a6 --source '.' --destination '/usr/src/app'
$ resin sync 7cf02a6 -s '/home/user/myResinProject' -d '/usr/src/app' --before 'echo Hello'
$ resin sync 7cf02a6 -s '/home/user/myResinProject' -d '/usr/src/app' --before 'echo Hello' --after 'echo Done'
$ resin sync --ignore 'lib/'
$ resin sync --verbose false
$ resin sync
@ -102,6 +103,11 @@ module.exports =
parameter: 'command'
description: 'execute a command before syncing'
alias: 'b'
,
signature: 'after'
parameter: 'command'
description: 'execute a command after syncing'
alias: 'a'
,
signature: 'port'
parameter: 'port'