Reputation:
I know about (doc ...)
I know about (user/clojuredocs ...)
I am a greedy bastard, and want to know if I can view java...* documentation from my repl [rather than googling for "java7 java.awt.Rectangle"] all the time.
Thanks! nx,
Because I am not scrooge mcduck, and tis the festive seasons, I am also willing to accept answers that function entirely within the CLI w/o using a browser (disqualifies w3m, lynx, links) --- but a pure CLI solution that does not use the clojure repl is acceptable too.
Upvotes: 4
Views: 285
Reputation: 3752
You can start browsing the documentation from your repl using "clojure.java.javadoc":
(use 'clojure.java.javadoc)
(javadoc java.awt.Rectangle)
It opens "default" browser (you can define w3m or any cli browser as default browser) with the javadoc.
Upvotes: 7