Blog Posts for: Cli

Determine the ConsoleColor from a 24 bit hexadecimal color code
17 April 2018

The .NET Console is limited to 16 colors. Learn how you can convert a hexadecimal color code to one of the 16 colors available in the console.

Determine the GitHub repository from the working directory
11 April 2018

Determine whether the current working directory is part of a Git repository, and if so, retrieve information for the remote GitHub repository.

Using ANSI colour codes in .NET Core Console applications
05 April 2018

Demonstrates how to use ANSI colour codes in .NET Core console applications, as well as the limitations of this on Windows.

Quick Tip: Pass arguments to your app when using the .NET CLI
27 March 2018

A quick tip to demonstrate how you can pass arguments to your application using the .NET CLI