edgedb / edgedb-cli

The EdgeDB CLI
https://www.edgedb.com/docs/cli/index
Apache License 2.0
166 stars 23 forks source link

Add run once mode to `edgedb watch` #1170

Closed ssendev closed 9 months ago

ssendev commented 10 months ago

Add a command line option to exit edgedb watch after running once. Which means it's actually not watching so maybe add it as another subcommand

This would be useful in scripts and is related to #1099

Currently can be faked with edgedb watch 2>&1 | while read line; do; echo $line; echo "x$line" | grep -q 'Initialized. Monitoring' && pkill --parent $$ -x edgedb; done but is pretty unclean

raddevon commented 9 months ago

This is available as the --dev-mode option on edgedb migrate/edgedb migration apply.