Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix skyvern init cli (#1813)
Shuchang Zheng626a8c71de31
diff --git a/skyvern/cli/commands.py b/skyvern/cli/commands.pyindex e3684ea2a..bfd5092fd 100644--- a/skyvern/cli/commands.py+++ b/skyvern/cli/commands.py@@ -24,14 +24,15 @@ def run_command(command: str, check: bool = True) -> tuple[Optional[str], Optiondef is_postgres_running() -> bool:if command_exists("pg_isready"):- result = run_command("pg_isready")+ result, _ = run_command("pg_isready")return result is not None and "accepting connections" in resultreturn Falsedef database_exists(dbname: str, user: str) -> bool:check_db_command = f'psql {dbname} -U {user} -c "\\q"'- return run_command(check_db_command, check=False) is not None+ output, _ = run_command(check_db_command, check=False)+ return output is not Nonedef create_database_and_user() -> None: