feat: modernize workflows and standardize configuration files (#85)

This commit is contained in:
2025-12-02 12:50:42 +02:00
committed by GitHub
parent 6027501f24
commit 6dd157f35b
23 changed files with 4365 additions and 6000 deletions

View File

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