Apply review comment

This commit is contained in:
Alexandre de Souza 2025-08-21 13:05:04 -03:00
parent 6b1bcb49be
commit ae404979ba
No known key found for this signature in database
GPG key ID: 29C8CC410E3F1BD0
4 changed files with 8 additions and 8 deletions

View file

@ -8,7 +8,7 @@ Deploying via CLI is as simple as calling `livebook deploy` with your configurat
```shell
livebook deploy
--org-token="lb_ok_your_org_token_here"
--org-token="lb_ot_your_org_token_here"
--teams-key="lb_tk_your_teams_key_here"
--deployment-group-id="13"
path/to/notebook.livemd
@ -68,7 +68,7 @@ Deploy a single notebook:
```bash
livebook deploy \
--org-token="lb_ok_..." \
--org-token="lb_ot_..." \
--teams-key="lb_tk_..." \
--deployment-group-id="17" \
path/to/notebook.livemd
@ -80,7 +80,7 @@ Deploy multiple notebooks:
```bash
livebook deploy \
--org-token="lb_ok_..." \
--org-token="lb_ot_..." \
--teams-key="lb_tk_..." \
--deployment-group-id="13" \
app1.livemd app2.livemd app3.livemd
@ -90,7 +90,7 @@ Use glob patterns for convenience:
```bash
livebook deploy \
--org-token="lb_ok_..." \
--org-token="lb_ot_..." \
--teams-key="lb_tk_..." \
--deployment-group-id="7" \
notebooks/*.livemd

View file

@ -15,7 +15,7 @@ defmodule Livebook.Teams.Constants do
Returns the Org Token prefix
"""
@spec org_token_prefix() :: String.t()
def org_token_prefix, do: "lb_ok_"
def org_token_prefix, do: "lb_ot_"
@doc """
Returns the Teams Key prefix

View file

@ -24,11 +24,11 @@ defmodule LivebookCLI.Deploy do
Deploys a single notebook:
livebook deploy --org-token="lb_ok_..." --teams-key="lb_tk_..." --deployment-group-id=123 path/to/app1.livemd
livebook deploy --org-token="lb_ot_..." --teams-key="lb_tk_..." --deployment-group-id=123 path/to/app1.livemd
Deploys multiple notebooks:
livebook deploy --org-token="lb_ok_..." --teams-key="lb_tk_..." --deployment-group-id=123 path/to/*.livemd\
livebook deploy --org-token="lb_ot_..." --teams-key="lb_tk_..." --deployment-group-id=123 path/to/*.livemd\
"""
end

View file

@ -291,7 +291,7 @@ defmodule Livebook.TeamsTest do
@tag teams_persisted: false
test "returns error with invalid credentials", %{team: team} do
config = %{teams_key: team.teams_key, session_token: "lb_ok_foo"}
config = %{teams_key: team.teams_key, session_token: "lb_ot_foo"}
assert {:transport_error, "You are not authorized" <> _} = Teams.fetch_cli_session(config)
refute Livebook.Hubs.hub_exists?(team.id)