Comments (3)
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.
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)
wheresome-lib/ls
is a plain function. That way one can type justls
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 likels | 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.
Great idea Mauricio!
from closh.
Related Issues (20)
- Adjacent symbols and strings considered as two tokens
- cd into directory just by typing the name
- Glob not properly expanding in JVM version HOT 1
- shell completion bugs HOT 2
- Redirects do not work correctly when reassigning std descriptors
- Support `cd - to` go to previous directory
- How to set PATH ? HOT 3
- Contributing HOT 2
- Tab-complete issues with bash integration HOT 1
- SCI/GraalVM port reports wrong line numbers on error
- rebel-readline does not work when compiled with Graal native-image
- Auto-complete woes on macOS 10.12 HOT 1
- Closh requires node version 9, but your version is v12.18.3 HOT 1
- init file use let set multiple value will hang
- Fail fast
- How could I require closh in another environment? HOT 2
- Feature request: nix instructions + nix package integration HOT 1
- depstar is deprecated and archived; switch to tools.build
- Consider upgrading SCI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from closh.