third-wheel 0.1.0 → 0.1.1
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 +11 -5
- package/bin/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,14 +5,19 @@ CLI for exporting Third Wheel recordings and transcripts.
|
|
|
5
5
|
## Login
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npx third-wheel login
|
|
8
|
+
npx third-wheel login
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
The command opens `/cli/login` in your browser. Create a token in the app,
|
|
12
12
|
paste it into the terminal, and the CLI stores it at `~/.third/config.json`.
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
By default, the CLI uses `https://third-three-lilac.vercel.app`.
|
|
15
|
+
|
|
16
|
+
For local development, pass your local app URL:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npx third-wheel login --app-url http://localhost:3000
|
|
20
|
+
```
|
|
16
21
|
|
|
17
22
|
## List Recordings
|
|
18
23
|
|
|
@@ -35,5 +40,6 @@ tools.
|
|
|
35
40
|
|
|
36
41
|
## Configuration
|
|
37
42
|
|
|
38
|
-
The CLI reads
|
|
39
|
-
app instance to call. Saved credentials live in
|
|
43
|
+
The CLI reads `--app-url`, saved config, `THIRD_WHEEL_APP_URL`, or `APP_URL` to
|
|
44
|
+
choose which app instance to call. Saved credentials live in
|
|
45
|
+
`~/.third/config.json`.
|
package/bin/cli.js
CHANGED
|
@@ -8,7 +8,7 @@ import { stdin as input, stdout as output } from "node:process";
|
|
|
8
8
|
|
|
9
9
|
const CONFIG_DIR = path.join(homedir(), ".third");
|
|
10
10
|
const CONFIG_FILE = path.join(CONFIG_DIR, "config.json");
|
|
11
|
-
const DEFAULT_APP_URL = "
|
|
11
|
+
const DEFAULT_APP_URL = "https://third-three-lilac.vercel.app";
|
|
12
12
|
|
|
13
13
|
function usage() {
|
|
14
14
|
console.log(`Usage:
|