This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ArgumentManager { | |
constructor() { | |
this.arguments = {}; | |
} | |
parseArguments() { | |
const args = process.argv.slice(2); | |
for (let i = 0; i < args.length; i++) { | |
const arg = args[i]; | |
if (arg.startsWith('--')) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import chalk from 'chalk'; | |
class Logs { | |
static Info( message ) { | |
console.log(chalk.hex('#d6af42')(Utils.formatConsoleDate(new Date())) + chalk.cyan('[INFO] ') + message); | |
} | |
static Error( message ) { | |
console.log(chalk.hex('#d6af42')(Utils.formatConsoleDate(new Date())) + chalk.red('[ERROR] ') + message); | |
} |