This document contains the help content for the run-http
command-line program.
Command Overview:
A CLI tool to run and control commands via http
Usage: run-http [OPTIONS] -- <COMMAND>...
<COMMAND>
— The command to run and monitor
-
-p
,--port <PORT>
— Port to run the web server onDefault value:
30067
-
--host <HOST>
— Host address to bind the web server toDefault value:
127.0.0.1
-
--restart-condition <RESTART_CONDITION>
— Condition command to run before restarting -
--fail-atleast-once
— Ensure restart condition fails at least once before passing -
--restart-condition-sleep <RESTART_CONDITION_SLEEP>
— Sleep duration in milliseconds between restart condition checksDefault value:
300
-
--quiet
— Suppress all logging output, only show command output
This document was generated automatically by
clap-markdown
.
run-http -- python -c 'import time; i=0; while True: print(f"Count: {i}"); i+=1; time.sleep(1)'
curl http://localhost:30067/start
curl http://localhost:30067/status
curl http://localhost:30067/stop
curl http://localhost:30067/restart