wabbajack/Wabbajack.CLI/CLIUtils.cs

22 lines
482 B
C#
Raw Normal View History

2020-02-24 16:50:58 +00:00
using System;
namespace Wabbajack.CLI
{
internal static class CLIUtils
{
internal static void Log(string msg, bool newLine = true)
{
//TODO: maybe also write to a log file?
if(newLine)
Console.WriteLine(msg);
else
Console.Write(msg);
}
internal static void LogException(Exception e, string msg)
{
Console.WriteLine($"{msg}\n{e}");
}
}
}