Giter VIP home page Giter VIP logo

Comments (6)

thecodrr avatar thecodrr commented on July 22, 2024

Hey, that's an amazing idea. Would be an awesome experiment. What features do you think it should have?

from fdir.

borestad avatar borestad commented on July 22, 2024

I think it should be as simple as possible and only pass the exact same options as the library. Most importantly, being able to pipe from either stdin or stdout.

As for implementation - there's probably 2 options:

  1. Keep the bin within this repository. Create a very simple wrapper, with some custom parsing.

  2. Use some cli-helper like https://github.com/sindresorhus/meow - although the large amount of dependencies may be a turn off.

Then....you might have to decide if you want to support Windows and create a .bat-wrapper

Just some thoughts :)

from fdir.

thecodrr avatar thecodrr commented on July 22, 2024

I think it should be as simple as possible and only pass the exact same options as the library.

I was thinking the same thing. There are about 5 options in the library. We can have a flag for each.

Most importantly, being able to pipe from either stdin or stdout.

The app would print a plain output to stdout and be able to take in input from stdin (of course).

Keep the bin within this repository. Create a very simple wrapper, with some custom parsing.

I think we shouldn't pollute the actual library. I will make a separate repo for the cli. I want to keep it zero dependency though so might have to do some basic parsing by hand. Shouldn't be too hard.

Once it's done, it can be published on npm and be used by anyone.

Then....you might have to decide if you want to support Windows and create a .bat-wrapper

That can be done, I think. First let's focus on getting the feature-set done.

from fdir.

JohnFitz avatar JohnFitz commented on July 22, 2024

Looks like somebody beat you to it with your own library 😄 glob-searcher. "Great minds think alike" I guess.

from fdir.

thecodrr avatar thecodrr commented on July 22, 2024

@JohnFitz 🤣🤣 yes that is true. But it's a little bit different.

I will be publishing the CLI version very soon. It's barebones but does everything you'd want it to; dumping the file paths to stdin.

from fdir.

JohnFitz avatar JohnFitz commented on July 22, 2024

from fdir.

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.