openhome-cli 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +10 -1
- package/package.json +1 -1
- package/src/commands/login.ts +11 -1
package/dist/cli.js
CHANGED
|
@@ -291,8 +291,17 @@ function openBrowser(url) {
|
|
|
291
291
|
}
|
|
292
292
|
async function loginCommand() {
|
|
293
293
|
p.intro("\u{1F511} OpenHome Login");
|
|
294
|
+
p.note(
|
|
295
|
+
[
|
|
296
|
+
"Your API key is a private password that lets this CLI talk to your",
|
|
297
|
+
"OpenHome account. You can find it on your settings page.",
|
|
298
|
+
"",
|
|
299
|
+
`Press Enter and we'll open it for you \u2014 click the ${chalk2.bold("API Keys")} tab.`
|
|
300
|
+
].join("\n"),
|
|
301
|
+
"Step 1 of 2 \u2014 Connect your account"
|
|
302
|
+
);
|
|
294
303
|
const openSettings = await p.confirm({
|
|
295
|
-
message:
|
|
304
|
+
message: "Ready? Press Enter to open your browser",
|
|
296
305
|
initialValue: true,
|
|
297
306
|
active: "Open browser",
|
|
298
307
|
inactive: "Skip"
|
package/package.json
CHANGED
package/src/commands/login.ts
CHANGED
|
@@ -26,8 +26,18 @@ export async function loginCommand(): Promise<void> {
|
|
|
26
26
|
p.intro("🔑 OpenHome Login");
|
|
27
27
|
|
|
28
28
|
// Step 1: API key
|
|
29
|
+
p.note(
|
|
30
|
+
[
|
|
31
|
+
"Your API key is a private password that lets this CLI talk to your",
|
|
32
|
+
"OpenHome account. You can find it on your settings page.",
|
|
33
|
+
"",
|
|
34
|
+
`Press Enter and we'll open it for you — click the ${chalk.bold("API Keys")} tab.`,
|
|
35
|
+
].join("\n"),
|
|
36
|
+
"Step 1 of 2 — Connect your account",
|
|
37
|
+
);
|
|
38
|
+
|
|
29
39
|
const openSettings = await p.confirm({
|
|
30
|
-
message:
|
|
40
|
+
message: "Ready? Press Enter to open your browser",
|
|
31
41
|
initialValue: true,
|
|
32
42
|
active: "Open browser",
|
|
33
43
|
inactive: "Skip",
|