Skip to content

a lite weight library for create daynamic console applications in dotnet

License

Notifications You must be signed in to change notification settings

AmirMahdyJebreily/console-pages-dot-net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Console Pages (1.0.3.1 beta)

A lite weight library for create daynamic console applications in dotnet and outher frameworks...

Nuget (with prereleases) GitHub tag (with filter) License: GPL v3 Conventional Commits

Install 📦

you can install latest version of psckage with this command :

dotnet add package ConsolePages

Release Notes 📝

  • Fix Bugs of Get Command Component
  • Make syntax better

Why develop applications based on terminal ?

There is no exact answer to this issue, but right now we have a lot of Unix devices in the world and a lot of bad people looking for programs under the terminal. Secondly, a graphical GUI cannot always be the right choice!

Why use Console Pages ? 🖥️

Creating multipurpose and large programs with many options under the terminal for C# programmers always requires a lot of money and a code sheet full of Console words 😁! But that nightmare of busy .CS program is over!

New syntax for make a simple app (see Tests To get to know more):

using ConsolePages;

CApp cApp = new CApp();

cApp.ShowPage(new Page(cApp.Layout, (a) =>
{
    a.Print(("[Error]", a.ErrorColor), "An error occurred in the code...");
    a.Print(("[Success]", a.SuccessColor), "Download Successfully completed...");
    a.Print(("[Info]", a.InfoColor), "App version is", ("0.0.1", a.WarningColor), "...");
    a.Print("You have", ("12$", a.InfoColor), "in your wallet");
}));

Raw dotnet syntax (in dotnet) :

Console.ForegroundColor = ConsoleColor.Red;
Console.Write("[Error]");
Console.ResetColor();
Console.WriteLine(" An error occurred in the code...");

Console.ForegroundColor = ConsoleColor.Green;
Console.Write("[Success]");
Console.ResetColor();
Console.WriteLine(" Download Successfully completed...");

Console.ForegroundColor = ConsoleColor.Cyan;
Console.Write("[Info]");
Console.ResetColor();
Console.Write(" App version is");
Console.ForegroundColor = ConsoleColor.Yellow;
Console.Write(" 0.0.1 ");
Console.RestColor();
Console.WriteLine(" ...");

Console.ResetColor();
Console.WriteLine("You have");
Console.ForegroundColor = ConsoleColor.Cyan;
Console.Write(" 12$ ");
Console.ResetColor();
Console.WriteLine("in your wallet");

Both of these will give you this result :

result a simple code in console pages

In the raw mode of .NET, you say, "Hey, wait, do I have to write so much code and clutter up my page for a colorful output?" But the Console Pages helps us to have a bigger view of the development of the program under the terminal!

About

a lite weight library for create daynamic console applications in dotnet

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages