Git Product home page Git Product logo

Comments (9)

natemcmaster avatar natemcmaster commented on July 19, 2024 4

I'd be very interested to see an official response to dotnet/corefxlab#1311.

Anyway, just curious what your take was on the landscape

My understanding of the landscape: https://imgs.xkcd.com/comics/standards.png

This is an important piece of System.CommandLine's readme:

The purpose of this library is to make command line tools first class by providing a command line parser. We've already made an attempt in 2009 but that wasn't a design we (or the community) was happy with.

I'm fairly new to .NET (i.e. only started working with it full time a few years ago), so I'm sure there is history that I've missed here. But it seems even the .NET team has tried to design a CLI parsing API, and found it difficult to satisfy everyone. M.E.CLU isn't exempt from this either.

That said, I'm hoping to carry on the work of building a solid CLI parsing command line. Maybe I should also write a roadmap...

from commandlineutils.

ebekker avatar ebekker commented on July 19, 2024

Just curious, have you looked at a couple other efforts that are trying to build out standard CLI parsing for .NET? Some of them are even being run as MS projects? Or do you just find you like the M.E.CLU approach the best?

from commandlineutils.

natemcmaster avatar natemcmaster commented on July 19, 2024

Yeah, there are plenty of libraries already available for command-line parsing, including a draft of official support, aka System.CommandLine. This project started not as an attempt to replace those, but rather it was about making a community-driven fork of a library that has seen lots of adoption and that MS decided to drop. @ebekker did you have other efforts in mind?

from commandlineutils.

ebekker avatar ebekker commented on July 19, 2024

Well I'm one of those that started to adopt M.E.CLU -- when I saw the Microsoft.Extensions namespace I assumed it was an endorsement of sorts, similar to how .Logging, .Configuration and .DependencyInjection are being treated in the .NET Core space.

But even before the announcement was made to discontinue support, I had already started looking at what everyone else was doing in the CLI parsing space, and I found a few that I started to play with:

I even tried to get some clarity on this from the powers that be but that only gave me more options :-)

Anyway, just curious what your take was on the landscape -- if you had played with others and actually settled on/preferred the model of M.E.CLU?

from commandlineutils.

ebekker avatar ebekker commented on July 19, 2024

BTW, when I did initially decide to adopt M.E.CLU, while I like the overall API, I'm very much a model-driven and declarative-approach kinda guy, so I started to build such an optional layer atop CLU: https://github.com/zyborg/Zyborg.CLI

I've since stopped working on it, but if you pursue this reincarnation, I may get re-inspired...

from commandlineutils.

shaggygi avatar shaggygi commented on July 19, 2024

If possible, I would like to see more effort put into the API in CoreFxLab.

https://github.com/dotnet/corefxlab/blob/master/src/System.CommandLine/README.md

from commandlineutils.

ebekker avatar ebekker commented on July 19, 2024

@shaggygi -- maybe it's just me, but I wasn't too happy with the very explicit and mechanical approach they took, it didn't seem any better than what I used with Mono.Options (NDesk) for many, many years before .NET Core came around.

from commandlineutils.

ebekker avatar ebekker commented on July 19, 2024

I suspect what you see in 1311 is as official as it will get.

from commandlineutils.

shaggygi avatar shaggygi commented on July 19, 2024

@natemcmaster funny image 😄

I honestly don't care which API is the winner. I just hope for one that gets some good features and backing from MS and the community. I just thought the one on CoreFxLabs would be the one that got the most love and eventually made it over to CoreFx like some of the other experimental APIs.

I'll keep an eye on your progress, as well.

Thanks

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.