File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import cli from "cli-ux";
10
10
import { AppControllerInterface , createAnonSocketClient , HomeAccountConfig } from "@deepkit/core" ;
11
11
12
12
export class AccessKeyCommand extends Command {
13
- static description = 'Generates a access_key that can be used in notebooks or api calls' ;
13
+ static description = 'Generates an access-key that can be used in notebooks or api calls' ;
14
14
15
15
public static args = [
16
16
{
@@ -47,8 +47,10 @@ export class AccessKeyCommand extends Command {
47
47
48
48
const app = client . controller < AppControllerInterface > ( 'app' ) ;
49
49
50
+ console . log ( `Connecting to ${ account . host } ` ) ;
51
+
50
52
const username = await cli . prompt ( 'username' , { required : true } ) ;
51
- const password = await cli . prompt ( 'password' , { required : true , type : 'mask ' } ) ;
53
+ const password = await cli . prompt ( 'password' , { required : true , type : 'hide ' } ) ;
52
54
53
55
const token = await app . login ( username , password ) ;
54
56
client . disconnect ( ) ;
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {InstallDockerCommand} from "./commands/install-docker";
15
15
import { InstallNvidiaCommand } from "./commands/install-nvidia" ;
16
16
import { AuthCommand } from "./commands/auth" ;
17
17
import { isElectronEnvironment } from "@deepkit/core" ;
18
+ import { AccessKeyCommand } from "./commands/access-key" ;
18
19
19
20
( global as any ) . WebSocket = require ( 'ws' ) ;
20
21
@@ -28,6 +29,7 @@ const commandsMap: { [name: string]: any } = {
28
29
'start' : StartCommand ,
29
30
// 'test': TestCommand,
30
31
'os' : OSCommand ,
32
+ 'access-key' : AccessKeyCommand ,
31
33
'install-docker' : InstallDockerCommand ,
32
34
'install-nvidia' : InstallNvidiaCommand ,
33
35
} ;
You can’t perform that action at this time.
0 commit comments