HelpConsole is a project to offer useful methods which makes easier to use console applications.
HelpConsole has methods to increase liability of output, state and methods.
Release: Latest release
.NET CLI:
dotnet add package HelpConsole
StartUp(ConsoleOption consoleOption = null);
FinishUp();
SetConsoleTitle(string firstText = null, string secondText = null, string thirdText = null);
ClearConsoleTitle();
Write<T>(T value, ConsoleColor color);
Write<T>(List<T> valueList, T expectedValue, ConsoleColor valueCcolor, ConsoleColor expectedColor);
Beep(Melody melody);
Sleep(int duration);
SleepWithBeeping(int duration);
StartingMethod([CallerMemberName] string memberName = "");
EndingMethod([CallerMemberName] string memberName = "");
PercentageNoFrac(int item1, int item2);
Percentage2F(int item1, int item2);
Percentage8F(int item1, int item2);
AddKeyActionPair(new Tuple<ConsoleKeyInfo, Action>(cki: cki, action: action))`;
WaitKeyAction();
KeyAction(ConsoleKeyInfo cki);
AddKeyFuncPair(new Tuple<ConsoleKeyInfo, Func<object>>(cki: cki, func: func));
object returnData = WaitKeyFunc();
object returnData = KeyFunc(ConsoleKeyInfo cki);
To check listed methods, example of output visit wiki page. HelpConsole Wiki
See Changelog
This repository is licensed under the “MIT” license. See MIT license.
If you’d like to contribute, then contribute. contributing guide
Twitter: Enes Okullu @enesokullu