Giter Club home page Giter Club logo

Comments (3)

dundalek avatar dundalek commented on May 24, 2024 1

Another project I discovered recently is https://github.com/kellyjonbrazil/jc which parses output of many commands into JSON, which could be very useful. With it we could get the command output as data and try those data-driven UI experiments.

from closh.

dundalek avatar dundalek commented on May 24, 2024

Hey Mauricio, this is something I am very interested in. I showed a possible workflow in my clojureD talk last year. For the demo I created a simple wrapper for builtins from Nushell. It would be great to have Clojure implementation for these, because it could become even more powerful than what Nushell has. I did not find time to work on this yet, so I would be very glad if you are interested to work on this.

I think these implementations could live as separate libraries and then we would just make a tight integration with closh. The reason for separate libraries is to make them also usable in tools like Reveal and Portal which are also very cool. I follow their work and am excited what they will come up with. I think there will be definitely opportunities for synergies. (BTW it would be super cool to try to run closh inside Reveal/Portal to leverage them for showing structured output.)

Some other notes:

  • We can bind commands with (defcmd ls some-lib/ls) where some-lib/ls is a plain function. That way one can type just ls instead of (ls).
  • Besides render function the commands should also provide default print function. ls alone would render the UI. But when used in pipeline it would get printed as string/lines so that you could pipe it to unix commands like ls | sed ....
  • We should try to used datafy+nav whenever possible. That way if you list files you could for example navigate down into directories.

from closh.

awb99 avatar awb99 commented on May 24, 2024

Great idea Mauricio!

from closh.

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.