Git Product home page Git Product logo

consolas's People

Contributors

rickardn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

solorzanof2 bubdm

consolas's Issues

Provide Required Attribute and Async return

If i mark a property with [Required] the Console should be asking about them.

And how can i write data to console during executing command? Building a tree who is renderd partly?

Sub commands

image

Arguments are not matched against anything else and no other commands will be matched against it.

By stating that an argument is a sub command argument it will only be matched when the command word is present.

Disable error message when arguments don't match

I would like to disable the follow type of error messages in Program.cs:

The arguments [ListArgs] and [HelpArgs] are non deterministic in respect to the args: {{name:"help", value:"True", isMatch:True, isDefault:False}}

Sample apps README.md

Readme-files for each of the sample apps which describes what features of the framework it uses and a short description of what the sample app does.

Automatic usage print out

It would be nice to have an automatic print out of all the arguments and a way to have the system to self document it self.

Pass a directory as a parameter

I have used Consolas to create a console app. It requires a path to a directory to be passed as an argument. This fails as it sees the ':' (colon) as an Operator in the path 'C:\first\second\folder'. I've also tried relative paths.

The problem seems to be in the ArgumentLL2Parser class but I'm unsure about how to prevent the Tokens.Operator.IsMatch from checking inside my path string.

Example:

C:\> MyConsolasApp.exe "C:\path\to\folder\" 
Unhandled Exception: System.Exception: Couldn't parse ':' as value
   at Consolas.Core.ArgumentLL2Parser.GetValue() in C:\Source\github\Consolas\Source\ConsoleApp.Core\ArgumentLL2Parser.cs:line 90

Command with more than one execute

I have a command with more than one Execute method with different argument classes:

public class ExampleCommand : Command
{
    public string Execute(Args1 args)
    {
        return "args1";
    }

    public string Execute(Args2 args)
    {
        return "args2";
    }
}

When invoking the command I get an exception : Unhandled Exception: System.Reflection.AmbiguousMatchException: Ambiguous match found.

Conflicting argument members

I have two or more argument classes which all have a property with the same signature. When invoking a command only one of the argument classes is matched even though other argument members are set.

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.