List untracked mods during list command

This commit is contained in:
Kallum Jones 2022-08-09 23:01:01 +01:00
parent 7d58059819
commit 47838309af
No known key found for this signature in database
GPG Key ID: D7F4589C4D7F81A9

View File

@ -22,11 +22,19 @@ export class ListCommand implements Subcommand {
const mods = Mods.getTrackedMods(); const mods = Mods.getTrackedMods();
if (!Util.isArrayEmpty(mods)) { if (!Util.isArrayEmpty(mods)) {
PrintUtils.info(tableFunc(Mods.getTrackedMods())) PrintUtils.info("Tracked Mods:")
PrintUtils.info(tableFunc(mods))
} else { } 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)
}
}
}) })
}) })
} }