rickardn / consolas Goto Github PK
View Code? Open in Web Editor NEWConsolas - a console application framework for .NET
License: BSD 2-Clause "Simplified" License
Consolas - a console application framework for .NET
License: BSD 2-Clause "Simplified" License
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?
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}}
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.
Most of the public API is undocumented. Would be nice to have most of it covered. See ConsoleApp
as a good example.
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.
We need more content in the wiki
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
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.