hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/cli/commands/list.js
blob: 48bb2cfd1b008050ef4a564a1c27e90b0a464034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const { LoadConfig } = require("../../lib/config")

const config = LoadConfig()
const { minecraft_version, modrinth_mods } = config

const ListMods = () =>
{
    console.log(`\n  Mods for MC ${minecraft_version}:\n`)
    for (const slug of modrinth_mods)
        console.log(`    - ${slug}`)
    console.log(`\n  Total: ${modrinth_mods.length} mods\n`)
}

module.exports = { ListMods }