fix(cli): Fallback to unknown when script.slug is missing in scripts list

This commit is contained in:
2025-10-28 19:17:11 +00:00
parent 626cfe30ba
commit 8cf016f0d8
3 changed files with 10 additions and 2 deletions

View File

@@ -273,7 +273,8 @@ export const runCli = async () => {
if (otherScripts.length > 0) {
logger.log('info', 'Other:');
otherScripts.forEach(script => {
logger.log('info', `${script.slug.padEnd(25)} - ${script.name} (${script.type})`);
const slug = script.slug || 'unknown';
logger.log('info', `${slug.padEnd(25)} - ${script.name} (${script.type})`);
});
}