bfi-cli 0.1.3 → 0.1.4
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/dist/cli.mjs +6 -3
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -6829,16 +6829,19 @@ async function searchSkillHub(query, namespace, globalOpts) {
|
|
|
6829
6829
|
limit: 20,
|
|
6830
6830
|
page: 0
|
|
6831
6831
|
});
|
|
6832
|
-
const skills = result.
|
|
6832
|
+
const skills = result.results || result.data || [];
|
|
6833
6833
|
if (skills.length === 0) {
|
|
6834
6834
|
console.log(`${DIM$8}No skills found on SkillHub for "${query}"${RESET$8}`);
|
|
6835
6835
|
return;
|
|
6836
6836
|
}
|
|
6837
6837
|
console.log(`Found ${skills.length} skill(s) on SkillHub:\n`);
|
|
6838
6838
|
for (const skill of skills) {
|
|
6839
|
-
|
|
6840
|
-
|
|
6839
|
+
const name = skill.displayName || skill.name || skill.slug;
|
|
6840
|
+
const desc = skill.summary || skill.description || "";
|
|
6841
|
+
console.log(` ${BOLD$5}${name}${RESET$8}`);
|
|
6842
|
+
if (desc) console.log(` ${DIM$8}${truncate$2(desc, 100)}${RESET$8}`);
|
|
6841
6843
|
console.log(` ${TEXT$7}slug: ${skill.slug}${RESET$8}`);
|
|
6844
|
+
if (skill.version) console.log(` ${DIM$8}version: ${skill.version}${RESET$8}`);
|
|
6842
6845
|
console.log();
|
|
6843
6846
|
}
|
|
6844
6847
|
} catch (error) {
|