ファイルの更新を検知してコマンドを実行し直す
fswatch コマンドを使う
code:install
brew install fswatch
使い方
code:_
fswatch -o file_to_watch | <command>
ecspresso の設定ファイル (jsonnet) の変更を契機に task-def.json を render し直す
code: _(bash)
fswatch -o ecspresso/ecs-task-def.jsonnet | while read; do
echo "========= UPDATED ========="
ecspresso render tsaskdef --config ecspresso/config.yaml
done