skills-atlas-cli 0.16.1 → 0.16.2
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/data.json +1011 -840
- package/package.json +1 -1
- package/src/commands/info.js +4 -1
- package/src/localskills.js +0 -0
package/package.json
CHANGED
package/src/commands/info.js
CHANGED
|
@@ -46,6 +46,10 @@ module.exports = async function info(argv) {
|
|
|
46
46
|
const infoObj = buildInfo(name, { skillIndex, vendors: data.vendors });
|
|
47
47
|
|
|
48
48
|
if (!infoObj.found) {
|
|
49
|
+
// `info` stays EXACT — it never fuzzy-resolves to a different skill (that would show the wrong
|
|
50
|
+
// skill's details as if they were yours). But "no such skill" is a valid answer, not a crash:
|
|
51
|
+
// exit 0 with clean output (a plain found:false for --json; a search hint for humans) so the
|
|
52
|
+
// plugin's `!`…`` wrapper doesn't surface it as `Error: Shell command failed`.
|
|
49
53
|
if (values.json) {
|
|
50
54
|
console.log(JSON.stringify(infoObj, null, 2));
|
|
51
55
|
} else {
|
|
@@ -54,7 +58,6 @@ module.exports = async function info(argv) {
|
|
|
54
58
|
if (sugg.length) console.error(`did you mean: ${sugg.join(', ')}`);
|
|
55
59
|
console.error(`try: skills-atlas search ${name}`);
|
|
56
60
|
}
|
|
57
|
-
process.exitCode = 1;
|
|
58
61
|
return;
|
|
59
62
|
}
|
|
60
63
|
|
package/src/localskills.js
CHANGED
|
Binary file
|