Skip to content

Commit 0b0421a

Browse files
committed
Rename to modal token info
1 parent f772c2f commit 0b0421a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

modal/cli/token.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ async def new(
6565
await _new_token(profile=profile, activate=activate, verify=verify, source=source)
6666

6767

68-
@token_cli.command(name="identity")
68+
@token_cli.command(name="info")
6969
@synchronizer.create_blocking
70-
async def identity():
71-
"""Display identity information about the current token."""
70+
async def info():
71+
"""Display information about the token that is currently in use."""
7272
console = make_console()
7373

7474
client = await _Client.from_env()

test/cli_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ def test_token_env_var_warning(servicer, set_env_client, server_url_env, modal_c
164164
assert "MODAL_TOKEN_ID / MODAL_TOKEN_SECRET environment variables are" in res.stdout
165165

166166

167-
def test_token_identity(servicer, set_env_client):
168-
res = run_cli_command(["token", "identity"])
167+
def test_token_info(servicer, set_env_client):
168+
res = run_cli_command(["token", "info"])
169169
assert "ak-test123" in res.stdout
170170
assert "test-workspace" in res.stdout
171171
assert "test-user" in res.stdout
@@ -176,7 +176,7 @@ def test_token_identity_from_env(servicer, set_env_client, monkeypatch):
176176
monkeypatch.setenv("MODAL_TOKEN_ID", "ak-from-env")
177177
monkeypatch.setenv("MODAL_TOKEN_SECRET", "as-from-env")
178178

179-
res = run_cli_command(["token", "identity"])
179+
res = run_cli_command(["token", "info"])
180180
# Check for key parts of the message (may have line wrapping, so check individual words)
181181
assert "Using" in res.stdout
182182
assert "MODAL_TOKEN_ID and MODAL_TOKEN_SECRET" in res.stdout

0 commit comments

Comments
 (0)