File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import { defineCommand } from "citty"
44import consola from "consola"
55
6- import { ensurePaths , PATHS } from "./lib/paths"
7- import { state } from "./lib/state"
6+ import { PATHS } from "./lib/paths"
87import { setupGitHubToken } from "./lib/token"
9- import { cacheVSCodeVersion } from "./lib/vscode-version"
108
119interface RunAuthOptions {
1210 verbose : boolean
13- business: boolean
1411}
1512
1613export 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} )
You can’t perform that action at this time.
0 commit comments