mirror of
https://git.bits.team/Bits/mod-manager.git
synced 2024-11-21 05:28:22 -05:00
List untracked mods during list command
This commit is contained in:
parent
7d58059819
commit
47838309af
@ -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)
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user