2020-11-06 23:51:23 +01:00
|
|
|
import { config } from './'
|
2020-05-17 09:11:33 +02:00
|
|
|
import { fill, treeToString } from './utils'
|
2019-12-10 13:44:59 +01:00
|
|
|
|
|
|
|
const showAll = () => {
|
2020-11-06 23:51:23 +01:00
|
|
|
console.log('\n\n' + fill(32, '_') + 'LOCATIONS:'.underline)
|
|
|
|
for (const [key, data] of Object.entries(config.locations)) {
|
|
|
|
console.log(`\n${key.blue.underline}:`)
|
|
|
|
console.log(treeToString(data, ['to:', 'from:', 'hooks:', 'options:', 'cron:']))
|
|
|
|
}
|
2019-12-10 13:44:59 +01:00
|
|
|
|
2020-11-06 23:51:23 +01:00
|
|
|
console.log('\n\n' + fill(32, '_') + 'BACKENDS:'.underline)
|
|
|
|
for (const [key, data] of Object.entries(config.backends)) {
|
|
|
|
console.log(`\n${key.blue.underline}:`)
|
|
|
|
console.log(treeToString(data, ['type:', 'path:', 'key:']))
|
|
|
|
}
|
2019-12-10 13:44:59 +01:00
|
|
|
}
|
|
|
|
|
2020-11-06 23:51:23 +01:00
|
|
|
export default showAll
|