feat: initial import from base-configs

This commit is contained in:
2025-06-23 02:32:13 +03:00
parent d833c49cdb
commit 2c000e8e7e
11 changed files with 378 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
/* eslint no-console: "off" -- This is a cli app that generates cli output */
const configurationPaths = require('../lib/configuration-paths')
const configItems = configurationPaths('`[module name]`')
const longestLine = configItems.reduce((a, b) => (a.length > b.length ? a : b), 0).length
const mdTable = configItems.map(file => {
const diff = longestLine - file.length
return `| ${file}${' '.repeat(diff)} |`
})
console.log('# Configuration files\n')
const header = 'Searched configuration files'
console.log(`| ${header}${' '.repeat(longestLine - header.length)} |`)
console.log(`| ${'-'.repeat(longestLine)} |`)
mdTable.forEach(line => console.log(line))