@andrian.yablonskyy/thub-agent 1.0.1 → 1.0.3
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 +1 -1
- package/package.json +1 -1
- package/src/config.js +2 -2
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ npx -y @andrian.yablonskyy/thub-agent run --type sw --image "$IMAGE_URL" --tests
|
|
|
14
14
|
|
|
15
15
|
## Configuration
|
|
16
16
|
|
|
17
|
-
Read from flags, then environment (`THUB_URL`, `THUB_TOKEN`, `THUB_GROUP`, `THUB_USER`), then `~/.config/thub/
|
|
17
|
+
Read from flags, then environment (`THUB_URL`, `THUB_TOKEN`, `THUB_GROUP`, `THUB_USER`), then `~/.config/thub/agent.json`, then a bundled default. `url`/`token` are required by the time a command actually talks to the Coordinator; `group`/`user` are optional everywhere.
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
20
|
thub config set url https://thub.example.com
|
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -18,8 +18,8 @@ const fs = require('node:fs'),
|
|
|
18
18
|
path = require('node:path');
|
|
19
19
|
|
|
20
20
|
// §7: "Configuration is read from flags, then environment (THUB_URL,
|
|
21
|
-
// THUB_TOKEN), then ~/.config/thub/
|
|
22
|
-
const CONFIG_PATH = path.join(os.homedir(), '.config', 'thub', '
|
|
21
|
+
// THUB_TOKEN), then ~/.config/thub/agent.json."
|
|
22
|
+
const CONFIG_PATH = path.join(os.homedir(), '.config', 'thub', 'agent.json'),
|
|
23
23
|
|
|
24
24
|
// Bundled with the package as a last-resort default, below the user's own
|
|
25
25
|
// config file, so `thub` has something to fall back on before `config set`
|