fix(core): update nx list output spacing issue
This commit is contained in:
parent
591264d483
commit
13302f099e
@ -130,7 +130,7 @@ function listCapabilities(pluginName: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
output.log({
|
output.log({
|
||||||
title: `Capabilities in ${plugin.name} :`,
|
title: `Capabilities in ${plugin.name}:`,
|
||||||
bodyLines
|
bodyLines
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -149,7 +149,7 @@ async function listPlugins() {
|
|||||||
const filtered = installedPlugins.filter(p => hide.indexOf(p.name) === -1);
|
const filtered = installedPlugins.filter(p => hide.indexOf(p.name) === -1);
|
||||||
|
|
||||||
output.log({
|
output.log({
|
||||||
title: `Installed plugins :`,
|
title: `Installed plugins:`,
|
||||||
bodyLines: filtered.map(p => {
|
bodyLines: filtered.map(p => {
|
||||||
const capabilities = [];
|
const capabilities = [];
|
||||||
if (hasElements(p.builders)) {
|
if (hasElements(p.builders)) {
|
||||||
@ -172,7 +172,7 @@ async function listPlugins() {
|
|||||||
|
|
||||||
if (alsoAvailable.length) {
|
if (alsoAvailable.length) {
|
||||||
output.log({
|
output.log({
|
||||||
title: `Also available :`,
|
title: `Also available:`,
|
||||||
bodyLines: alsoAvailable.map(p => {
|
bodyLines: alsoAvailable.map(p => {
|
||||||
return `${terminal.bold(p.name)} (${p.capabilities})`;
|
return `${terminal.bold(p.name)} (${p.capabilities})`;
|
||||||
})
|
})
|
||||||
|
|||||||
@ -28,14 +28,14 @@ export async function listCommunityPlugins(installedPluginsMap: Set<string>) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
output.log({
|
output.log({
|
||||||
title: `Community plugins :`,
|
title: `Community plugins:`,
|
||||||
bodyLines: availableCommunityPlugins.map(p => {
|
bodyLines: availableCommunityPlugins.map(p => {
|
||||||
return `${terminal.bold(p.name)} - ${p.description}`;
|
return `${terminal.bold(p.name)} - ${p.description}`;
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
output.warn({
|
output.warn({
|
||||||
title: `Community plugins :`,
|
title: `Community plugins:`,
|
||||||
bodyLines: [`Error fetching plugins.`, error]
|
bodyLines: [`Error fetching plugins.`, error]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user