powerbase-cli 0.1.3__tar.gz → 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/PKG-INFO +1 -1
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/pyproject.toml +1 -1
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/commands/auth.py +5 -5
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli.egg-info/PKG-INFO +1 -1
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/tests/test_cli_help.py +1 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/README.md +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/setup.cfg +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/__init__.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/__main__.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/api.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/certs/powerbase-test-ca.pem +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/cli.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/commands/__init__.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/commands/agent.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/commands/branch.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/commands/config_cmd.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/commands/context.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/commands/database.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/commands/instance.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/commands/org.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/commands/parser.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/commands/publish.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/commands/sandbox.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/commands/shared.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/commands/sql.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/config.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/session.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli/transport.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli.egg-info/SOURCES.txt +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli.egg-info/dependency_links.txt +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli.egg-info/entry_points.txt +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/src/powerbase_cli.egg-info/top_level.txt +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/tests/test_api.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/tests/test_cli_commands.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/tests/test_config.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/tests/test_session.py +0 -0
- {powerbase_cli-0.1.3 → powerbase_cli-0.1.4}/tests/test_transport.py +0 -0
|
@@ -75,8 +75,8 @@ def handle_auth_login(args: argparse.Namespace) -> int:
|
|
|
75
75
|
"poll_interval": data.get("poll_interval", 2),
|
|
76
76
|
"next_action": "ask_user_to_open_url",
|
|
77
77
|
"message": (
|
|
78
|
-
"
|
|
79
|
-
"Do not poll yet. After the user confirms
|
|
78
|
+
"Return login_url to the user and stop. "
|
|
79
|
+
"Do not open the URL or poll yet. After the user confirms approval, run "
|
|
80
80
|
f"`powerbase auth wait --login-id {login_id} --json`."
|
|
81
81
|
),
|
|
82
82
|
},
|
|
@@ -149,9 +149,9 @@ def register_auth_commands(subparsers: argparse._SubParsersAction[argparse.Argum
|
|
|
149
149
|
"login",
|
|
150
150
|
help="Generate browser login URL.",
|
|
151
151
|
description=(
|
|
152
|
-
"Start browser
|
|
153
|
-
"Give the
|
|
154
|
-
"
|
|
152
|
+
"Start browser login and return login_url plus login_id. "
|
|
153
|
+
"Give the URL to the user. Do not open it or poll yet. "
|
|
154
|
+
"After the user confirms approval, run `powerbase auth wait --login-id ...`."
|
|
155
155
|
),
|
|
156
156
|
)
|
|
157
157
|
p.set_defaults(handler=handle_auth_login)
|
|
@@ -28,6 +28,7 @@ class CliHelpTests(unittest.TestCase):
|
|
|
28
28
|
login_parser = auth_parser._subparsers._group_actions[0].choices["login"]
|
|
29
29
|
help_text = login_parser.format_help()
|
|
30
30
|
self.assertIn("login_id", help_text)
|
|
31
|
+
self.assertIn("Do not open", help_text)
|
|
31
32
|
self.assertIn("powerbase auth wait", help_text)
|
|
32
33
|
|
|
33
34
|
def test_auth_wait_help_mentions_timeout(self) -> None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|