diff options
| author | hachem <im@hachem.wtf> | 2025-12-09 23:02:55 +0100 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-12-09 23:02:55 +0100 |
| commit | 5cc4c5a689e124e3951c80f0cfda0de4a797fec7 (patch) | |
| tree | 7cb412c67f54636a4926161f4c948b68d87e74e8 /cli/commands/list.js | |
| parent | 50e62e246fef7975866c244e08ead7c681d50349 (diff) | |
[add]: merging and refactor
Diffstat (limited to 'cli/commands/list.js')
| -rw-r--r-- | cli/commands/list.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cli/commands/list.js b/cli/commands/list.js new file mode 100644 index 0000000..48bb2cf --- /dev/null +++ b/cli/commands/list.js @@ -0,0 +1,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 } + |
