Display thumbnail links in plugin list
This commit is contained in:
@@ -352,6 +352,9 @@ export class PluginHost extends EventEmitter {
|
|||||||
installable.forEach((p, i) => {
|
installable.forEach((p, i) => {
|
||||||
console.log(`${i + 1}. ${p.name} v${p.version} by ${p.author}`);
|
console.log(`${i + 1}. ${p.name} v${p.version} by ${p.author}`);
|
||||||
console.log(` ${p.description || 'No description'}`);
|
console.log(` ${p.description || 'No description'}`);
|
||||||
|
if (p.thumbnail) {
|
||||||
|
console.log(` 🖼️ ${p.thumbnail}`);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const rl = readline.createInterface({
|
const rl = readline.createInterface({
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ console.log('Plugin directory:', host.pluginsDir);
|
|||||||
console.log('\n📦 Available in Registry:', host.getRegistry().length);
|
console.log('\n📦 Available in Registry:', host.getRegistry().length);
|
||||||
host.getRegistry().forEach(p => {
|
host.getRegistry().forEach(p => {
|
||||||
console.log(` - ${p.name} v${p.version} by ${p.author}`);
|
console.log(` - ${p.name} v${p.version} by ${p.author}`);
|
||||||
|
if (p.thumbnail) {
|
||||||
|
console.log(` 🖼️ ${p.thumbnail}`);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const contributors = [...new Set(host.getRegistry().map(p => p.author))];
|
const contributors = [...new Set(host.getRegistry().map(p => p.author))];
|
||||||
|
|||||||
Reference in New Issue
Block a user