You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
624 B
19 lines
624 B
import { config } from '../'
|
|
import { fill, treeToString } from '../utils'
|
|
|
|
const showAll = () => {
|
|
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:']))
|
|
}
|
|
|
|
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:']))
|
|
}
|
|
}
|
|
|
|
export default showAll
|