Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ MaintCLI Public

Present command-line interface to your app that is accessible via a web-browser.

License

Notifications You must be signed in to change notification settings

bmdub/MaintCLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MaintCLI

Presents a command-line interface to your app that is accessible via a web-browser.

Preview

Features:

  • Define commands in the application, and handle them a/synchronously.
  • Send asynchronous messages to connected clients.
  • Modifiable appearance: Font/color, Background color/image/gradient.
  • ILogger/ILoggerProvider implementations for use as a logging target.
  • Supports HTTPS and basic authentication.
  • Usable within any C# application type. No need for IIS, etc.

Installation

Install the package MaintCLI from Nuget.org. Or, from the package manager console:

PM> Install-Package MaintCLI

Usage

To publish the interface, you can call Start() on the default static instance:

MaintCli.Default.Start(httpEndPoint: new IPEndPoint(IPAddress.Any, 5000));

To add a command:

MaintCli.Default.AddCommand(
  new CommandBuilder("echo", "echos the argument you specify", "echo \"hello wrold\"")
	.AddArgument("text", "the string, surrounded by quotes, to echo")
	.Execute((sender, args) =>
	{
	  MaintCli.Default.SendMessageTo(sender, args["text"]);
	})
	.Build());

See SimpleTest for a more feature-complete example.

About

Present command-line interface to your app that is accessible via a web-browser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published