mirror of
https://git.bits.team/Bits/mod-manager.git
synced 2025-07-12 05:59:43 -04:00
Added an upgrade command
This commit is contained in:
@ -11,6 +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";
|
||||
|
||||
|
||||
export default class ModManager {
|
||||
@ -23,7 +24,8 @@ export default class ModManager {
|
||||
new InstallCommand(),
|
||||
new ListCommand(),
|
||||
new UninstallCommand(),
|
||||
new EssentialCommand()
|
||||
new EssentialCommand(),
|
||||
new UpgradeCommand()
|
||||
];
|
||||
|
||||
static FilePaths = class {
|
||||
@ -48,6 +50,8 @@ export default class ModManager {
|
||||
command.registerCommand(this.program);
|
||||
}
|
||||
|
||||
this.program.showSuggestionAfterError();
|
||||
this.program.showHelpAfterError();
|
||||
this.program.parse();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user