fix readme, use arguments in discover, too

master
Clemens Klug 2019-04-10 10:41:46 +02:00
parent f6cb85c211
commit f163eb1e2c
2 changed files with 6 additions and 2 deletions

View File

@ -17,7 +17,7 @@ Examples:
### pre/post exec ### pre/post exec
e.g. `python3 start.py test.lst -a ps --pre 'echo {path} {step}' --post './sample/notify_telegram.sh <telegram_bot_key> <telegram_room> {path} {cmd} {returncode} \n {stdout}'` e.g. `python3 discover.py ./sample/ -a ps --pre 'echo {path} {step}' --post './sample/notify_telegram.sh <telegram_bot_key> <telegram_room> {path} {cmd} {returncode} \n {stdout}'`
## manual config ## manual config
@ -32,3 +32,7 @@ e.g. `python3 start.py test.lst -a ps --pre 'echo {path} {step}' --post './sampl
### other actions ### other actions
* default action: up -d * default action: up -d
* add argument -a "<compose action>" * add argument -a "<compose action>"
### pre/post exec
e.g. `python3 start.py test.lst -a ps --pre 'echo {path} {step}' --post './sample/notify_telegram.sh <telegram_bot_key> <telegram_room> {path} {cmd} {returncode} \n {stdout}'`

View File

@ -70,4 +70,4 @@ if __name__ == "__main__":
else: else:
import start import start
for service in autostarts: for service in autostarts:
start.change_service(service, args.action) start.change_service(service, args.action, pre_cmd=args.pre, post_cmd=args.post)