Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/meokullu/helpconsole

HelpConsole is a package to offer useful methods which makes easier to use console applications.
https://github.com/meokullu/helpconsole

console console-app console-application helper

Last synced: about 2 months ago
JSON representation

HelpConsole is a package to offer useful methods which makes easier to use console applications.

Awesome Lists containing this project

README

        

## HelpConsole
[![HelpConsole](https://img.shields.io/nuget/v/HelpConsole.svg)](https://www.nuget.org/packages/HelpConsole/) [![HelpConsole](https://img.shields.io/nuget/dt/HelpConsole.svg)](https://www.nuget.org/packages/HelpConsole/) [![License](https://img.shields.io/github/license/meokullu/HelpConsole.svg)](https://github.com/meokullu/HelpConsole/blob/master/LICENSE)

HelpConsole is a project to offer useful methods which makes easier to use console applications.

![HelpConsole](https://github.com/meokullu/HelpConsole/assets/4971757/d75601ba-8a9d-4871-8dab-a34bf98f2c64)

[Download on NuGet gallery](https://www.nuget.org/packages/HelpConsole/)

### Description
HelpConsole has methods to increase liability of output, state and methods.

### How to download
Release: [Latest release](https://github.com/meokullu/HelpConsole/releases/latest)

[Download on NuGet gallery](https://www.nuget.org/packages/HelpConsole/)

.NET CLI:
```
dotnet add package HelpConsole
```

### Example Usage

#### Start & Finish
```
StartUp(ConsoleOption consoleOption = null);
```
```
FinishUp();
```
#### Title & Writing
```
SetConsoleTitle(string firstText = null, string secondText = null, string thirdText = null);
```
```
ClearConsoleTitle();
```
```
Write(T value, ConsoleColor color);
```
```
Write(List valueList, T expectedValue, ConsoleColor valueCcolor, ConsoleColor expectedColor);
```
#### Sleeping & Beeping
```
Beep(Melody melody);
```
```
Sleep(int duration);
```
```
SleepWithBeeping(int duration);
```
#### Method
```
StartingMethod([CallerMemberName] string memberName = "");
```
```
EndingMethod([CallerMemberName] string memberName = "");
```
#### Math
```
PercentageNoFrac(int item1, int item2);
```
```
Percentage2F(int item1, int item2);
```
```
Percentage8F(int item1, int item2);
```
#### Key-Action
```
AddKeyActionPair(new Tuple(cki: cki, action: action))`;
```
```
WaitKeyAction();
```
```
KeyAction(ConsoleKeyInfo cki);
```
#### Key-Func
```
AddKeyFuncPair(new Tuple>(cki: cki, func: func));
```
```
object returnData = WaitKeyFunc();
```
```
object returnData = KeyFunc(ConsoleKeyInfo cki);
```

To check listed methods, example of output visit wiki page. [HelpConsole Wiki](https://github.com/meokullu/HelpConsole/wiki)

### Version History
See [Changelog](https://github.com/meokullu/HelpConsole/blob/master/CHANGELOG.md)

### Task list
* Create an issue or check task list: [Issues](https://github.com/meokullu/HelpConsole/issues)

### Licence
This repository is licensed under the "MIT" license. See [MIT license](https://github.com/meokullu/HelpConsole/blob/master/LICENSE).

### Authors & Contributing

If you'd like to contribute, then contribute. [contributing guide](https://github.com/meokullu/HelpConsole/blob/master/CONTRIBUTING.md)

[![Contributors](https://contrib.rocks/image?repo=meokullu/HelpConsole)](https://github.com/meokullu/HelpConsole/graphs/contributors)

### Help
Twitter: Enes Okullu [@enesokullu](https://twitter.com/EnesOkullu)