...
This commit is contained in:
17
examples/tmuxrunner_start.py
Executable file
17
examples/tmuxrunner_start.py
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
|
||||
from herolib.infra.tmuxrunner.task_runner_enhanced import TaskOrchestrator
|
||||
|
||||
def main():
|
||||
tasks_dir = sys.argv[1]
|
||||
api_port = int(sys.argv[2]) if len(sys.argv) > 2 else 8000
|
||||
orchestrator = TaskOrchestrator(tasks_dir, api_port)
|
||||
orchestrator.run()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) < 2:
|
||||
print("Usage: python enhanced_runner.py <tasks_directory_path> [api_port]")
|
||||
sys.exit(1)
|
||||
main()
|
Reference in New Issue
Block a user