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 {
136
136
* Log into the provided deployment. If the deployment URL is not specified,
137
137
* ask for it first with a menu showing recent URLs and CODER_URL, if set.
138
138
*/
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 )
141
141
if ( ! url ) {
142
142
return
143
143
}
144
144
145
145
// It is possible that we are trying to log into an old-style host, in which
146
146
// case we want to write with the provided blank label instead of generating
147
147
// a host label.
148
- const label = typeof args [ 2 ] === "undefined" ? toSafeHost ( url ) : args [ 2 ]
148
+ const label = typeof inputLabel === "undefined" ? toSafeHost ( url ) : inputLabel
149
149
150
150
// 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 )
152
152
if ( ! res ) {
153
153
return // The user aborted.
154
154
}
You can’t perform that action at this time.
0 commit comments