File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -136,19 +136,19 @@ export class Commands {
136136 * Log into the provided deployment. If the deployment URL is not specified,
137137 * ask for it first with a menu showing recent URLs and CODER_URL, if set.
138138 */
139- public async login ( ... args : string [ ] ) : Promise < void > {
140- const url = await this . maybeAskUrl ( args [ 0 ] )
139+ public async login ( [ inputUrl , inputLabel , inputToken ] : string [ ] ) : Promise < void > {
140+ const url = await this . maybeAskUrl ( inputUrl )
141141 if ( ! url ) {
142142 return
143143 }
144144
145145 // It is possible that we are trying to log into an old-style host, in which
146146 // case we want to write with the provided blank label instead of generating
147147 // a host label.
148- const label = typeof args [ 2 ] === "undefined" ? toSafeHost ( url ) : args [ 2 ]
148+ const label = typeof inputLabel === "undefined" ? toSafeHost ( url ) : inputLabel
149149
150150 // Try to get a token from the user, if we need one, and their user.
151- const res = await this . maybeAskToken ( url , args [ 1 ] )
151+ const res = await this . maybeAskToken ( url , inputToken )
152152 if ( ! res ) {
153153 return // The user aborted.
154154 }
You can’t perform that action at this time.
0 commit comments