feat: add --api-url flag to procedural flows seed script

Allows running against remote environments like Railway.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michael Chihlas
2026-02-14 23:48:55 -05:00
parent 771889ab4f
commit 1b86f66954

View File

@@ -985,15 +985,17 @@ async def seed_procedural_flows():
def main():
global ADMIN_EMAIL, ADMIN_PASSWORD
global ADMIN_EMAIL, ADMIN_PASSWORD, API_BASE_URL
parser = argparse.ArgumentParser(description="Seed procedural flow templates")
parser.add_argument("--email", required=True, help="Admin email for authentication")
parser.add_argument("--password", required=True, help="Admin password")
parser.add_argument("--api-url", default=API_BASE_URL, help="API base URL (default: http://localhost:8000/api/v1)")
args = parser.parse_args()
ADMIN_EMAIL = args.email
ADMIN_PASSWORD = args.password
API_BASE_URL = args.api_url
asyncio.run(seed_procedural_flows())