From 47838309afd4b21d69eb8b87018b525165f71a05 Mon Sep 17 00:00:00 2001 From: Kallum Jones Date: Tue, 9 Aug 2022 23:01:01 +0100 Subject: [PATCH] List untracked mods during list command --- src/commands/list_command.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/commands/list_command.ts b/src/commands/list_command.ts index 5e7adfc..b83a564 100644 --- a/src/commands/list_command.ts +++ b/src/commands/list_command.ts @@ -22,11 +22,19 @@ export class ListCommand implements Subcommand { const mods = Mods.getTrackedMods(); if (!Util.isArrayEmpty(mods)) { - PrintUtils.info(tableFunc(Mods.getTrackedMods())) + PrintUtils.info("Tracked Mods:") + PrintUtils.info(tableFunc(mods)) } else { - PrintUtils.warn("There are no mods installed yet! Try mod-manager install -h to figure out more!") + PrintUtils.warn("There are no mods tracked yet! Try mod-manager install -h to figure out more!") } + const untrackedMods = Mods.getUntrackedMods(); + if (!Util.isArrayEmpty(untrackedMods)) { + PrintUtils.warn("\nUntracked Mods: ") + for (let untrackedMod of untrackedMods) { + PrintUtils.warn(untrackedMod) + } + } }) }) }