mirror of
https://git.bits.team/Bits/mod-manager.git
synced 2025-06-30 17:19:43 -04:00
Ran a reformat
This commit is contained in:
@ -35,6 +35,10 @@ export default class Initialiser {
|
||||
return existsSync(this.getModManagerFolderPath());
|
||||
}
|
||||
|
||||
public static getModManagerFolderPath(): string {
|
||||
return path.join(this.MOD_MANAGER_FOLDER);
|
||||
}
|
||||
|
||||
private static isDirFabricServer(): boolean {
|
||||
const serverProperties = path.join("server.properties");
|
||||
const fabric = path.join(".fabric");
|
||||
@ -53,8 +57,4 @@ export default class Initialiser {
|
||||
}
|
||||
}
|
||||
|
||||
public static getModManagerFolderPath(): string {
|
||||
return path.join(this.MOD_MANAGER_FOLDER);
|
||||
}
|
||||
|
||||
}
|
@ -1,24 +1,8 @@
|
||||
import chalk from "chalk";
|
||||
import ora, { Ora } from "ora";
|
||||
import ora, {Ora} from "ora";
|
||||
|
||||
export default class PrintUtils {
|
||||
|
||||
static info(print: string) {
|
||||
console.log(chalk.white(print));
|
||||
}
|
||||
|
||||
static warn(print: string) {
|
||||
console.log(chalk.yellowBright(print));
|
||||
}
|
||||
|
||||
static success(print: string) {
|
||||
console.log(chalk.greenBright(print));
|
||||
}
|
||||
|
||||
static error(print: string) {
|
||||
console.log(chalk.redBright(print));
|
||||
}
|
||||
|
||||
static Spinner = class {
|
||||
private spinner: Ora;
|
||||
|
||||
@ -26,7 +10,7 @@ export default class PrintUtils {
|
||||
if (text == null || undefined) {
|
||||
text = "";
|
||||
}
|
||||
|
||||
|
||||
this.spinner = ora(text);
|
||||
}
|
||||
|
||||
@ -54,4 +38,20 @@ export default class PrintUtils {
|
||||
this.spinner.clear();
|
||||
}
|
||||
}
|
||||
|
||||
static info(print: string) {
|
||||
console.log(chalk.white(print));
|
||||
}
|
||||
|
||||
static warn(print: string) {
|
||||
console.log(chalk.yellowBright(print));
|
||||
}
|
||||
|
||||
static success(print: string) {
|
||||
console.log(chalk.greenBright(print));
|
||||
}
|
||||
|
||||
static error(print: string) {
|
||||
console.log(chalk.redBright(print));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user