mirror of
https://git.bits.team/Bits/mod-manager.git
synced 2025-04-09 09:28:35 -04:00
17 lines
549 B
TypeScript
17 lines
549 B
TypeScript
import Subcommand from "./subcommand.js";
|
|
import {Command} from "commander";
|
|
import ModManager from "../mod-manager.js";
|
|
import Mods from "../mods/mods.js";
|
|
|
|
export default class UpgradeCommand implements Subcommand {
|
|
registerCommand(program: Command): void {
|
|
program.command("update")
|
|
.description("Checks for and updates mods that have a newer available version")
|
|
.action(() => {
|
|
ModManager.execute(async() => {
|
|
await Mods.update();
|
|
})
|
|
})
|
|
}
|
|
|
|
} |