Split pages and commands into editable modules

This commit is contained in:
2026-07-27 09:44:56 +09:00
parent ae0f6bc970
commit eac572dcaf
18 changed files with 112 additions and 37 deletions
+3
View File
@@ -0,0 +1,3 @@
import { color } from '../terminal.js';
export const name = 'pages'; export const description = 'List available pages';
export function run({ pageMap, config }) { return [...pageMap.values()].map(page => `${color(config.theme?.accent || 'yellow', page.name.padEnd(14))} ${page.title || page.name}`).join('\n') || 'No pages configured.'; }