Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meow-plus #38

Closed
mklabs opened this issue May 2, 2016 · 6 comments
Closed

meow-plus #38

mklabs opened this issue May 2, 2016 · 6 comments
Labels

Comments

@mklabs
Copy link

mklabs commented May 2, 2016

An idea, maybe totally silly.

I was thinking of bundling every little tools I use when creating a new CLI, sort of like meow does.

I would usually need everything meow does plus:

  • A lightweight logger, ideally based on debug and npmlog
  • tab completion, something like integrating tabtab here but with completion registered automatically from help output and parse-help
  • chalk & log-symbos, maybe tightly integrated with the logger. I kinda like being able to do Hello:red Sindre:bold (:color used to escape strings with chalk methods)
  • stdin helpers (stdin handling #20)

I wonder if it is something that could go into meow directly, otherwise it will probably go into a meow-plus package.

😺

@sindresorhus
Copy link
Owner

Sounds like a good idea, but should be a separate project. meow is pretty much the result of me extracting what I had in common in most of my CLI's. I tried to keep it as minimal as possible. I would also go with something other than meow-plus. Since it's bigger, it should be a bigger cat sound, so maybe roar? :p (Btw, the name is taken, but it's name grabbed, so you can just request it from npm).

A lightweight logger, ideally based on debug and npmlog

Maybe: https://github.com/kevva/squeak

chalk & log-symbos, maybe tightly integrated with the logger. I kinda like being able to do Hello:red Sindre:bold (:color used to escape strings with chalk methods)

Not a big fan of that syntax. You might be able to take some inspiration from chalk/chalk-cli#4 (when it's done).

stdin helpers (#20)

I plan on probably adding this to meow. Just need to figure out the details. Feedback on #20 highly appreciated.

@mklabs
Copy link
Author

mklabs commented May 15, 2016

Thanks a lot Sindre for all your inputs.

I wasn't aware of squeak, looks very nice and pretty much what I had in mind.

Really cool stuff with that chalk template feature. If it lands, it handles my need pretty nicely.

As for the name, I was thinking of miaou or something like that, which if the french equivalent of meow. I like roar as well, but I'd prefer avoid the hassle of requesting it.

Btw, I like your new meow avatar :p

@kevva
Copy link
Contributor

kevva commented May 15, 2016

@mklabs, if you end up using squeak, please do open issues if you think anything can be improved. I'm not too satisfied with it :P.

@sindresorhus
Copy link
Owner

sindresorhus commented May 15, 2016

miaou is hard to remember and type though. I'll request roar for you if that's the only thing stopping you? It's a very easy process. You just email abuse@npmjs.com that the package is name-grabbed and they'll give it to you within a day or two. No drama.

@mklabs
Copy link
Author

mklabs commented May 15, 2016

@kevva I have yet to use it, but I'll do :)

I'm not too satisfied with it :P.

Why so ? Looks pretty cool, and minimal amount of dependencies which is what I'm looking for.

@mklabs
Copy link
Author

mklabs commented May 26, 2016

I started working on this idea yesterday. Ended up with something like this (though its a bit tied to the tool i was writing): https://github.com/mklabs/bake/blob/master/lib/cli.js#L11

since I need to do the same for another one, I'll probably work on this again today and extract it into its own package.

@sindresorhus about the roar name, sure thing I'll maybe request the package name. Otherwise, I may go for something like roar-cli.

Feel free to close the issue if you'd like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants