GithubHelp home page GithubHelp logo

twaalewijn / commandlineparser-subverbextension Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 81 KB

Extension methods to help with parsing subverbs using the .NET CommandLineParser library.

License: MIT License

C# 95.14% PowerShell 4.86%
command-line dotnet

commandlineparser-subverbextension's Introduction

Subverbs extension for CommandLineParser

Nuget (with prereleases) Nuget (with prereleases)
Sonar Quality Gate Sonar Documented API Density Azure DevOps coverage (branch)

This project contains a library with extension methods to help with parsing subverbs using the .NET CommandLineParser library.

Subverb structures are currently not officially supported in CommandLineParser and the feature is being tracked in this issue here.

Until an official solution has been implemented you can use this library to nest and group verbs as deeply as you desire without breaking, for example, the auto help.

Build Status

Branch Status
master Build status
develop Build status

How To Use

See the links below for an example in one of the supported languages.

Build Instructions

Prerequisites

The .NET Core SDK and .NET Framework Dev Pack can also be installed via the Visual Studio installer.

Visual Studio

Open the solution and build like normal.
NuGet packages will be located in the bin folders.

Cake

Run one of the targets below by calling build.ps1 from a powershell prompt:

>.\build.ps1 -Target <Target here>
Target Does
Build Builds the solution.
Test Builds and tests the solution.
Publish Versions the assemblies based on the current tag by modifying Directory.Build.props, builds/tests the solution and copies the artifacts to ./publish.

WARNING: Cleans the repository via git clean -xdf. Make sure unadded files are committed first.

Contributing

Contributions are welcome, thanks for wanting to help out!

To make your contribution as smooth as possible for both of us please follow the guidelines below.

  • File an issue stating what currently isn't working for you (perferably with a pseudo code example of the verbs, parser settings and commandline calls that were used).
  • If you decide to fix it yourself:
    • Thanks :)
    • Create a branch based on develop instead of master.
    • Add some tests to test your fix or feature (at least one that tests the code example from your issue).
    • Submit a pull request while targeting the develop branch.
    • I'll try to review it as soon as I have time (usually during the weekend).

Note that, because this project is only an extension, issues might also be caused by CommandLineParser itself. Please confirm that your issue is not already a known issue there before filing an issue on this project.

commandlineparser-subverbextension's People

Contributors

twaalewijn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

eternityteam

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.