All Projects → bilal-fazlani → Commanddotnet

bilal-fazlani / Commanddotnet

Licence: mit
A modern framework for building modern CLI apps

Programming Languages

csharp
926 projects

Projects that are alternatives of or similar to Commanddotnet

Laravel Zero
A PHP framework for console artisans
Stars: ✭ 2,821 (+1023.9%)
Mutual labels:  console-application, command-line
Argh
Argh! A minimalist argument handler.
Stars: ✭ 752 (+199.6%)
Mutual labels:  command-line, argument-parser
Pboy
a small .pdf management tool with a command-line UI
Stars: ✭ 662 (+163.75%)
Mutual labels:  console-application, command-line
Structopt
Parse command line arguments by defining a struct
Stars: ✭ 323 (+28.69%)
Mutual labels:  command-line, argument-parser
Argparse.jl
Package for parsing command-line arguments to Julia programs.
Stars: ✭ 131 (-47.81%)
Mutual labels:  command-line, argument-parser
Cocona
Micro-framework for .NET Core console application. Cocona makes it easy and fast to build console applications on .NET Core.
Stars: ✭ 398 (+58.57%)
Mutual labels:  command-line, dotnet-core
Clipp
easy to use, powerful & expressive command line argument parsing for modern C++ / single header / usage & doc generation
Stars: ✭ 687 (+173.71%)
Mutual labels:  command-line, argument-parser
Moe
A command line based editor inspired by vi/vim. Written in Nim.
Stars: ✭ 252 (+0.4%)
Mutual labels:  console-application, command-line
Commandlineutils
Command line parsing and utilities for .NET
Stars: ✭ 1,782 (+609.96%)
Mutual labels:  command-line, dotnet-core
Clikt
Multiplatform command line interface parsing for Kotlin
Stars: ✭ 1,658 (+560.56%)
Mutual labels:  command-line, argument-parser
Caporal.js
A full-featured framework for building command line applications (cli) with node.js
Stars: ✭ 3,279 (+1206.37%)
Mutual labels:  command-line, argument-parser
Command Line Api
Command line parsing, invocation, and rendering of terminal output.
Stars: ✭ 2,418 (+863.35%)
Mutual labels:  command-line, dotnet-core
Php Console
🖥 PHP CLI application library, provide console argument parse, console controller/command run, color style, user interactive, format information show and more. 功能全面的PHP命令行应用库。提供控制台参数解析, 命令运行,颜色风格输出, 用户信息交互, 特殊格式信息显示
Stars: ✭ 310 (+23.51%)
Mutual labels:  console-application, command-line
Box
📦🚀 Fast, zero config application bundler with PHARs.
Stars: ✭ 574 (+128.69%)
Mutual labels:  console-application, command-line
Getopt Php
A PHP library for command-line argument processing
Stars: ✭ 305 (+21.51%)
Mutual labels:  command-line, argument-parser
Clap
Create your command-line parser, with all of the bells and whistles, declaratively or procedurally.
Stars: ✭ 7,174 (+2758.17%)
Mutual labels:  command-line, argument-parser
Argumentparser
Faster, easier, more declarative parsing of command line arguments in Objective-C/Foundation.
Stars: ✭ 251 (+0%)
Mutual labels:  command-line, argument-parser
Commandline
The best C# command line parser that brings standardized *nix getopt style, for .NET. Includes F# support
Stars: ✭ 3,209 (+1178.49%)
Mutual labels:  command-line, dotnet-core
Argumentum
C++ command line parsing library
Stars: ✭ 92 (-63.35%)
Mutual labels:  command-line, argument-parser
Deno Cliffy
Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Stars: ✭ 149 (-40.64%)
Mutual labels:  command-line, argument-parser

Nuget NuGet Pre Release NuGet GitHub Netlify

GitHub last commit Travis (.com) branch

Gitter Discord

CommandDotNet

A modern framework for building modern CLI apps

Out of the box support for commands, sub-commands, validations, dependency injection, piping and streaming, enums & custom types, typo suggestions, prompting, passwords, response files and more. See the features page.

Includes test tools used by the framework to test all features of the framework.

Modify and extend the functionality of the framework through configuration and middleware.

Documentation 👉 https://commanddotnet.bilal-fazlani.com

Example

public class Calculator
{
    public void Add(int value1, int value2)
    {
        Console.WriteLine($"Answer:  {value1 + value2}");
    }

    public void Subtract(int value1, int value2)
    {
        Console.WriteLine($"Answer:  {value1 - value2}");
    }
}
class Program
{
    static int Main(string[] args)
    {
        return new AppRunner<Calculator>().Run(args);
    }
}

With these two classes, we've defined an Add and Subtract command and help is automatically generated.

~
$ dotnet calc.dll -h
Usage: dotnet calc.dll

Usage: dotnet calc.dll [command]

Commands:

  Add
  Subtract

Use "dotnet calc.dll [command] --help" for more information about a command.

~
$ dotnet calc.dll Add -h
Usage: dotnet calc.dll Add [arguments]

Arguments:

  value1  <NUMBER>

  value2  <NUMBER>

~
$ dotnet calc.dll Add 40 20
Answer: 60

Check out the docs for more examples

Credits 🎉

Special thanks to Drew Burlingame for continuous support and contributions

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].