Code Monkey home page Code Monkey logo

Comments (7)

natemcmaster avatar natemcmaster commented on June 15, 2024 1

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.

jerriep avatar jerriep commented on June 15, 2024 1

This will be useful for helping write the docs:
https://docs.microsoft.com/en-us/teamblog/docs-extension

from commandlineutils.

natemcmaster avatar natemcmaster commented on June 15, 2024

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,
    1. Model building (apply conventions and build up a CommandLineApplication object)
    2. Parsing (apply args[] to the app object)
    3. Validation (check all requirements are met)
    4. 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.

jerriep avatar jerriep commented on June 15, 2024

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.

natemcmaster avatar natemcmaster commented on June 15, 2024

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.

jerriep avatar jerriep commented on June 15, 2024

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.

natemcmaster avatar natemcmaster commented on June 15, 2024

from commandlineutils.

Related Issues (20)

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.