Skip to content

Commit 49c2680

Browse files
committed
Revert "feat: Add business account support to auth"
This reverts commit b3647a2.
1 parent b3647a2 commit 49c2680

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

src/auth.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
import { defineCommand } from "citty"
44
import consola from "consola"
55

6-
import { ensurePaths, PATHS } from "./lib/paths"
7-
import { state } from "./lib/state"
6+
import { PATHS } from "./lib/paths"
87
import { setupGitHubToken } from "./lib/token"
9-
import { cacheVSCodeVersion } from "./lib/vscode-version"
108

119
interface RunAuthOptions {
1210
verbose: boolean
13-
business: boolean
1411
}
1512

1613
export async function runAuth(options: RunAuthOptions): Promise<void> {
@@ -19,14 +16,6 @@ export async function runAuth(options: RunAuthOptions): Promise<void> {
1916
consola.info("Verbose logging enabled")
2017
}
2118

22-
if (options.business) {
23-
state.accountType = "business"
24-
consola.info("Using business plan GitHub account")
25-
}
26-
27-
await ensurePaths()
28-
await cacheVSCodeVersion()
29-
3019
await setupGitHubToken({ force: true })
3120
consola.success("GitHub token written to", PATHS.GITHUB_TOKEN_PATH)
3221
}
@@ -43,16 +32,10 @@ export const auth = defineCommand({
4332
default: false,
4433
description: "Enable verbose logging",
4534
},
46-
business: {
47-
type: "boolean",
48-
default: false,
49-
description: "Use a business plan GitHub Account",
50-
},
5135
},
5236
run({ args }) {
5337
return runAuth({
5438
verbose: args.verbose,
55-
business: args.business,
5639
})
5740
},
5841
})

0 commit comments

Comments
 (0)