All Projects → deniszykov → commandline

deniszykov / commandline

Licence: MIT license
Getopt styled command line parser.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to commandline

Gitlab Cli
Create a merge request from command line in gitlab
Stars: ✭ 224 (+1217.65%)
Mutual labels:  commandline
googletranslate
Python Google Translate (using reverse-engineered public API, so free)
Stars: ✭ 67 (+294.12%)
Mutual labels:  commandline
pac4cli
Proxy-auto-discovery for command-line applications
Stars: ✭ 20 (+17.65%)
Mutual labels:  commandline
Functional intro to python
[tutorial]A functional, Data Science focused introduction to Python
Stars: ✭ 228 (+1241.18%)
Mutual labels:  commandline
todo-cli
✅ Command-line tool to manage Todo lists
Stars: ✭ 88 (+417.65%)
Mutual labels:  commandline
rdf2smw
Convert RDF to Semantic MediaWiki facts in MediaWiki XML format, with a standalone commandline tool
Stars: ✭ 18 (+5.88%)
Mutual labels:  commandline
Winfetch
🛠 A command-line system information utility written in PowerShell. Like Neofetch, but for Windows.
Stars: ✭ 189 (+1011.76%)
Mutual labels:  commandline
fasdr
PowerShell command line productivity booster
Stars: ✭ 31 (+82.35%)
Mutual labels:  commandline
semver-cli
semver-cli is a simple command line tool to compare and manipulate version strings.
Stars: ✭ 28 (+64.71%)
Mutual labels:  commandline
pendfetch
Double Pendulum visualised with fetching system information in Python.
Stars: ✭ 62 (+264.71%)
Mutual labels:  commandline
Ace
Node.js framework for creating command line applications
Stars: ✭ 233 (+1270.59%)
Mutual labels:  commandline
Kunst
Download and display album art or display embedded album art
Stars: ✭ 242 (+1323.53%)
Mutual labels:  commandline
shell.how
Explain shell commands using next-generation autocomplete Fig.
Stars: ✭ 237 (+1294.12%)
Mutual labels:  commandline
Radare2
UNIX-like reverse engineering framework and command-line toolset
Stars: ✭ 15,412 (+90558.82%)
Mutual labels:  commandline
toastify
🍞A commandline tool that shows desktop notifications using notify-rust
Stars: ✭ 60 (+252.94%)
Mutual labels:  commandline
Yadm
Yet Another Dotfiles Manager
Stars: ✭ 2,982 (+17441.18%)
Mutual labels:  commandline
gatsby-theme-terminal
A Gatsby theme for techies who love terminal / command line / bash like portfolio.
Stars: ✭ 20 (+17.65%)
Mutual labels:  commandline
machinescli
This tool provides commandline access for https://www.hackthebox.eu, https://tryhackme.com/ and https://www.vulnhub.com/ machines.
Stars: ✭ 34 (+100%)
Mutual labels:  commandline
awesome-macos-commandline
A curated list of awesome command-line software for macOS.
Stars: ✭ 167 (+882.35%)
Mutual labels:  commandline
Blackeye-for-Windows
This is a Phishing tool. Phishing is a type of hacking also called credential harvesting. It creates fake websites for victims to login which saves their login info which includes IP, User-Agent, Username and Password to a file in the computer running Blackeye. This tool has been there for Linux and even Android via Termux. I converted it to Win…
Stars: ✭ 38 (+123.53%)
Mutual labels:  commandline

dotnet_build

Introduction

A simple getopt styled command line library.

Installation

Install-Package deniszykov.CommandLine

For .NET Core Hosted environment:

Install-Package deniszykov.CommandLine.Hosted

.NET Core Hosted Example

Quick Start

To start, you need to configure the entry point to the application:

public class Program
{
  private static int Main(string[] arguments) =>
    CommandLine
      .CreateFromArguments(arguments)
      .Use<Program>() // set class with verbs/commands
      .Run();

  public static int Hello(string name)
  {
    Console.WriteLine("Hello " + name + "!");
    return 0; // exit code
  }
}

Full Example Code

CommandLine relies on reflection to find method to invoke.
This method should return int value which is interpreted as Exit Code of application.
Asynchronous entry points and methods are also supported. To do this, use method RunAsync() and Task<int> as return type.

When you could request help for your application:

> myapp /?

This test application. Type /? for help.

  Verbs:
    HELLO    Says hello to specified 'name'.

Or invoke Hello(string name) with following command:

> myapp hello --name Jake

Hello Jake!

Documentation

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].