opencode-token-tracker 1.6.0 → 1.6.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.
|
@@ -534,13 +534,12 @@ function cmdConfig(positional) {
|
|
|
534
534
|
console.log("\n Usage: opencode-tokens config get <key>\n");
|
|
535
535
|
return;
|
|
536
536
|
}
|
|
537
|
-
|
|
538
|
-
if (value === undefined) {
|
|
537
|
+
if (!SETTABLE_KEYS[key]) {
|
|
539
538
|
console.log(`\n Unknown key: ${key}\n Available: ${Object.keys(SETTABLE_KEYS).join(", ")}\n`);
|
|
539
|
+
return;
|
|
540
540
|
}
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
}
|
|
541
|
+
const value = resolveConfigKey(config, key);
|
|
542
|
+
console.log(`\n ${key} = ${JSON.stringify(value)} (default: ${JSON.stringify(SETTABLE_KEYS[key].default)})\n`);
|
|
544
543
|
return;
|
|
545
544
|
}
|
|
546
545
|
if (action === "set") {
|
package/package.json
CHANGED