Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 51e6bff

Browse files
committed
Add separate login command
1 parent 64f7c9d commit 51e6bff

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/cli/commands/connect-webviews.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ const command: CommandModule<GlobalOptions> = {
3333
await executeCommand("connectWebviews.get", [argv.id], argv)
3434
}
3535
)
36+
.command(
37+
"login <id>",
38+
"login to a connect webview",
39+
(yargs) => {
40+
return yargs.positional("id", {
41+
describe: "the connect webview ID",
42+
demandOption: true,
43+
type: "string",
44+
})
45+
},
46+
async (argv) => {
47+
await completeInteractiveLogin(argv.id, argv)
48+
}
49+
)
3650
.command(
3751
"create",
3852
"create a connect webview",

0 commit comments

Comments
 (0)