draftie 0.1.3 → 0.1.5
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/README.md +2 -2
- package/dist/draftie.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npx draftie auth login
|
|
|
13
13
|
npx draftie upload plan.html
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
- `auth login` prints the server's
|
|
17
|
-
key into the terminal. This works over SSH.
|
|
16
|
+
- `auth login` prints the address of the server's CLI setup page. Open it, sign in, generate an
|
|
17
|
+
API key, and paste the key into the terminal. This works over SSH.
|
|
18
18
|
- `upload` prints the page's link, `URL:`, and the link that returns the exact bytes,
|
|
19
19
|
`Raw HTML:`.
|
|
20
20
|
|
package/dist/draftie.js
CHANGED
|
@@ -257,11 +257,11 @@ program
|
|
|
257
257
|
const auth = program.command("auth").description("Manage the API key that the other commands send.");
|
|
258
258
|
auth
|
|
259
259
|
.command("login")
|
|
260
|
-
.description("Save an API key that you
|
|
260
|
+
.description("Save an API key that you generate on the CLI setup page. Works over SSH: you paste the key.")
|
|
261
261
|
.addOption(urlOption())
|
|
262
262
|
.action(async (options) => {
|
|
263
263
|
const url = serverUrl(options.url);
|
|
264
|
-
console.log(`Open ${url} in a browser, sign in, and
|
|
264
|
+
console.log(`Open ${url}/#cli-setup in a browser, sign in, and generate an API key.\n`);
|
|
265
265
|
const key = await ask("Paste the API key: ");
|
|
266
266
|
if (key === "")
|
|
267
267
|
throw new CliError("No key entered. Nothing saved.");
|