Comments (7)
I actually just had to do an OnValidate method with the unreleased bits
FYI - I'm planning on releasing 2.2.0 this weekend :)
from commandlineutils.
This will be useful for helping write the docs:
https://docs.microsoft.com/en-us/teamblog/docs-extension
from commandlineutils.
Thanks for making this offer. I'd love to help writing docs and samples. Off the top of my head, here are some ideas areas I think could need more docs:
- Concept: convention API (new in 2.2.0).
- What are the default conventions provided by the library?
- How do you write your own convention?
- Concept: validation
- What kinds of validators can be used?
- How do you write your own validation?
- Concept: lifecycle. There are several phases in the app. Most samples show using .Execute(), but you can tap in to different phases. in order, they are,
- Model building (apply conventions and build up a CommandLineApplication object)
- Parsing (apply args[] to the app object)
- Validation (check all requirements are met)
- Execution (run the OnExecute handler on the selected subcommand)
- Dependency injection - how to use it
- Response file parsing
There are probably more, so feel free to suggest topics. I certainly don't expect you to write all of these topics, so let me know which ones you'd like to tackle. Thanks in advance!
from commandlineutils.
Ok great. Think I'll start with the dependency injection and can also look into the conventions and validation (I actually just had to do an OnValidate
method with the unreleased bits).
The lifecycle I am definitely unfamiliar with atm, as well as response file parsing.
from commandlineutils.
I made improvements to docs generate. It runs automatically when changes are merged, so the only thing in the master branch is the markdown. Generated HTML is kept in the gh-pages branch.
I'm open to more subjects for documentation and would be happy to take more PRs for this. I'm closing for now as I'm not planning to write more docs anytime soon.
from commandlineutils.
Yeah, that is a good change, Nate. I noticed those commits a while back.
I will help you with more Docs, but the rest of this month is taken up by a bunch of personal projects I want to release. I think in June I will concentrate on writing again, as I want to release OAuth 2 and OIDC guides for my blog. So I will then be able to help you with this again.
from commandlineutils.
from commandlineutils.
Related Issues (20)
- RunCommandLineApplicationAsync fails after update 3.1.0->4.0.1 HOT 2
- Issue with `DefaultHelpTextGenerator` in `GenerateCommands` HOT 2
- how to get all options and values? HOT 4
- Exception when defining a property as Argument in a command and also in one of its sub commands
- [Question] Defining Options in Base Class and using them in derived class HOT 3
- Documentation error in Validation sample program HOT 2
- Support for use as ConfigurationProvider HOT 3
- Add ResponseFileHandling to CommandLineContext so it can be passed through the static CommandLineApp.Execute HOT 2
- [Question] Unrecognized command or argument handling HOT 2
- Not possible to implement subcommand by using the inheritance method and with ExecuteAsync method HOT 3
- [Question] Trim Unused Code option HOT 5
- Nullable boolean Options aren't supported HOT 1
- [Question] Defining Options in Base Class and using them in derived class HOT 2
- [Question] - TargetInvocationException HOT 2
- Nuget package System.ComponentModel.Annotations V5.0.0 is deprecated HOT 2
- VersionOptionFromAssemblyAttributes - no documentation for template HOT 1
- [Question] Changes to DirectoryExists from 3.1.0 to 4.1.0 HOT 1
- [Question] Syntax of templates HOT 1
- Can I specify hidden options HOT 1
- Trimmed compilation fails with annotations HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commandlineutils.