ByteDev.Cmd 1.0.0

Library providing functionality to help when writing output from a .NET Console application.

Install-Package ByteDev.Cmd -Version 1.0.0
dotnet add package ByteDev.Cmd --version 1.0.0
<PackageReference Include="ByteDev.Cmd" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ByteDev.Cmd --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ByteDev.Cmd

Library providing functionality to help when writing output from a .NET Console application.

Installation

ByteDev.Cmd has been written as a .NET Standard 2.0 library, so you can consume it from a .NET Core or .NET Framework 4.6.1 (or greater) application.

ByteDev.Cmd is hosted as a package on nuget.org. To install from the Package Manager Console in Visual Studio run:

Install-Package ByteDev.Cmd

Further details can be found on the nuget page.

Code

The repo can be cloned from git bash:

git clone https://github.com/ByteDev/ByteDev.Cmd

A test console application (ByteDev.Cmd.TestApp) is provided for testing and usage examples.

Usage

Public classes provided include Output, Logger, MessageBox, Keyboard, Prompt.

Output

Provides wrapper functionality around the Console class to make writing out output easier.

Methods include:

  • Write: write text or MessageBox
  • WriteLine: write line of text
  • WriteRainbowLine: write text in some crazy rainbow colors ;-)
  • WriteAlignLeft: write left aligned text (padded entire line)
  • WriteAlignRight: write right aligned text (padded entire line)
  • WriteAlignCenter: write center aligned text (padded entire line)
  • WriteAlignToSides: writes some text left aligned and some text right aligned (padded entire line)
  • WriteHorizontalLine: write horizontal line
  • WriteBlankLines: write n blank lines

Logger

Given optional LogLevel, LoggerColorTheme and Output dependencies provides logger style functionality wrapped around the Console class.

Methods include:

  • WriteDebug
  • WriteInfo
  • WriteWarning
  • WriteError
  • WriteCritical

ByteDev.Cmd

Library providing functionality to help when writing output from a .NET Console application.

Installation

ByteDev.Cmd has been written as a .NET Standard 2.0 library, so you can consume it from a .NET Core or .NET Framework 4.6.1 (or greater) application.

ByteDev.Cmd is hosted as a package on nuget.org. To install from the Package Manager Console in Visual Studio run:

Install-Package ByteDev.Cmd

Further details can be found on the nuget page.

Code

The repo can be cloned from git bash:

git clone https://github.com/ByteDev/ByteDev.Cmd

A test console application (ByteDev.Cmd.TestApp) is provided for testing and usage examples.

Usage

Public classes provided include Output, Logger, MessageBox, Keyboard, Prompt.

Output

Provides wrapper functionality around the Console class to make writing out output easier.

Methods include:

  • Write: write text or MessageBox
  • WriteLine: write line of text
  • WriteRainbowLine: write text in some crazy rainbow colors ;-)
  • WriteAlignLeft: write left aligned text (padded entire line)
  • WriteAlignRight: write right aligned text (padded entire line)
  • WriteAlignCenter: write center aligned text (padded entire line)
  • WriteAlignToSides: writes some text left aligned and some text right aligned (padded entire line)
  • WriteHorizontalLine: write horizontal line
  • WriteBlankLines: write n blank lines

Logger

Given optional LogLevel, LoggerColorTheme and Output dependencies provides logger style functionality wrapped around the Console class.

Methods include:

  • WriteDebug
  • WriteInfo
  • WriteWarning
  • WriteError
  • WriteCritical

  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 236 6/12/2018