Woof.Command
6.2.0
Prefix Reserved
See the version list below for details.
dotnet add package Woof.Command --version 6.2.0
NuGet\Install-Package Woof.Command -Version 6.2.0
<PackageReference Include="Woof.Command" Version="6.2.0" />
paket add Woof.Command --version 6.2.0
#r "nuget: Woof.Command, 6.2.0"
// Install Woof.Command as a Cake Addin #addin nuget:?package=Woof.Command&version=6.2.0 // Install Woof.Command as a Cake Tool #tool nuget:?package=Woof.Command&version=6.2.0
Woof.Command
A part of the Woof Tookit by CodeDog.
Distributed under MIT License. (c)2022 by CodeDog, All rights reserved.
About
A general purpose command line interface.
Mimics some bash
and PowerShell
functionality providing persitent history
and advanced auto-complete feature activated with tab key.
Based on System.Console
, requires cmd
, PowerShell
or similar to run.
Usage
Create an instance of CommandShell
class.
When started with the Start
method it will work similarily to cmd
.
It's not very useful unless you add some custom commands to it.
The CommandShell
provides Command
event that is triggered each time
the user press enter. As the event arguments you get the command
entered parsed. Quoting is properly processed using cmd
syntaxt.
You get separate command name and arguments passed.
The response output can be set by settings the event arguments.
You can also add manual entries for your custom commands.
Just add entries to the instance's ManPages
dictionary.
They will be shown when man
commmand is issued without parameters.
The clas also provides auto-complete feature that can be highly custimized. It was inspired with Linux bash on ubuntu that shows suggestions and completions for some external programs.
By default it completes available commands and file names.
Just press tab to see available files and directories.
Disclaimer
Woof Toolkit is a work in progress in constant development, however it's carefully maintained with production code quality.
PLEASE report all issues on GitHub!
Describe how to reproduce an issue. Also feel free to suggest new features or improvements.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Woof Toolkit 6.2 first release.