From 5cc4c5a689e124e3951c80f0cfda0de4a797fec7 Mon Sep 17 00:00:00 2001 From: hachem Date: Tue, 9 Dec 2025 23:02:55 +0100 Subject: [add]: merging and refactor --- cli/commands/list.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cli/commands/list.js (limited to 'cli/commands/list.js') 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 } + -- cgit v1.3