Skip to content

Commit b0a0093

Browse files
committed
add/update profile commands and logic
1 parent fb06ad1 commit b0a0093

9 files changed

Lines changed: 1001 additions & 866 deletions

File tree

packages/wrangler/src/__tests__/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe("wrangler", () => {
4747
wrangler auth 🔐 Manage authentication
4848
wrangler login 🔓 Login to Cloudflare
4949
wrangler logout 🚪 Logout from Cloudflare
50-
wrangler profile 🔀 Manage authentication profiles for multiple accounts [open beta]
50+
wrangler profiles 🔀 Manage authentication profiles for multiple accounts [open beta]
5151
wrangler whoami 🕵️ Retrieve your user information
5252
5353
COMPUTE & AI
@@ -126,7 +126,7 @@ describe("wrangler", () => {
126126
wrangler auth 🔐 Manage authentication
127127
wrangler login 🔓 Login to Cloudflare
128128
wrangler logout 🚪 Logout from Cloudflare
129-
wrangler profile 🔀 Manage authentication profiles for multiple accounts [open beta]
129+
wrangler profiles 🔀 Manage authentication profiles for multiple accounts [open beta]
130130
wrangler whoami 🕵️ Retrieve your user information
131131
132132
COMPUTE & AI

packages/wrangler/src/__tests__/logout.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ describe("logout", () => {
3030
expect,
3131
}) => {
3232
await runWrangler("logout", { CLOUDFLARE_API_TOKEN: "DUMMY_TOKEN" });
33-
expect(std.out).toMatchInlineSnapshot(
33+
expect(std.err).toMatchInlineSnapshot(
3434
`
35+
"X [ERROR] You are logged in with an API Token. Unset the CLOUDFLARE_API_TOKEN in the environment to log out.
36+
3537
"
36-
⛅️ wrangler x.x.x
37-
──────────────────
38-
You are logged in with an API Token. Unset the CLOUDFLARE_API_TOKEN in the environment to log out."
3938
`
4039
);
4140
});

0 commit comments

Comments
 (0)