mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2025-09-07 19:10:39 +00:00
check config in the beginning to avoid doing it all over the place
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import { config } from './autorestic'
|
||||
import { ConfigError, fill, treeToString } from './utils'
|
||||
import { fill, treeToString } from './utils'
|
||||
|
||||
|
||||
|
||||
const showAll = () => {
|
||||
if (!config) throw ConfigError
|
||||
|
||||
console.log('\n\n' + fill(32, '_') + 'LOCATIONS:'.underline)
|
||||
for (const [key, data] of Object.entries(config.locations)) {
|
||||
console.log(`\n${key.blue.underline}:`)
|
||||
|
Reference in New Issue
Block a user