mirror of
https://git.bits.team/Bits/mod-manager.git
synced 2024-12-21 20:08:21 -05:00
Changed red x to info symbol when mods are already at the latest version
This commit is contained in:
parent
ca0c596423
commit
f7758680d1
@ -3,7 +3,7 @@ import {Command} from "commander";
|
||||
import ModManager from "../mod-manager.js";
|
||||
import Mods from "../mods/mods.js";
|
||||
|
||||
export default class UpgradeCommand implements Subcommand {
|
||||
export default class UpdateCommand implements Subcommand {
|
||||
registerCommand(program: Command): void {
|
||||
program.command("update")
|
||||
.description("Checks for and updates mods that have a newer available version")
|
||||
|
@ -11,7 +11,7 @@ import {ListCommand} from "./commands/list_command.js";
|
||||
import UninstallCommand from "./commands/uninstall_command.js";
|
||||
import EssentialCommand from "./commands/essential_command.js";
|
||||
import {readFileSync, unlinkSync} from "fs";
|
||||
import UpgradeCommand from "./commands/upgrade_command.js";
|
||||
import UpdateCommand from "./commands/upgrade_command.js";
|
||||
import MigratePossibleCommand from "./commands/migrate_possible.js";
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ export default class ModManager {
|
||||
new ListCommand(),
|
||||
new UninstallCommand(),
|
||||
new EssentialCommand(),
|
||||
new UpgradeCommand(),
|
||||
new UpdateCommand(),
|
||||
new MigratePossibleCommand()
|
||||
];
|
||||
|
||||
|
@ -194,7 +194,7 @@ export default class Mods {
|
||||
throw new ModNotFoundError("There is no newer version available.");
|
||||
}
|
||||
} catch (e) {
|
||||
spinner.error(`${mod.name} already has the latest version installed!`)
|
||||
spinner.info(`${mod.name} already has the latest version installed!`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -39,6 +39,14 @@ export default class PrintUtils {
|
||||
this.spinner.succeed(print);
|
||||
}
|
||||
|
||||
public warn(print: string) {
|
||||
this.spinner.warn(print);
|
||||
}
|
||||
|
||||
public info(print: string) {
|
||||
this.spinner.info(`ℹ️ ${print}`);
|
||||
}
|
||||
|
||||
public updateText(text: string) {
|
||||
this.spinner.start(text);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user