Hi everybody, I wrote a help macro to make getting help easier within
the REPL and thought others might also find it useful. It regroups
into one command various helpers found in clojure-contrib:

 * classpath: classpath
 * ns-utils: docs, dir, vars
 * repl-utils: expression-info, show, source

There's also a shortcut to get the current working directory (pwd) and
it also act like find-doc, but is easier to type. Here's the available
help queries:

Usage: (help pwd)
       (help classpath)
       (help dir <ns>)
       (help docs <ns>)
       (help vars <ns>)
       (help source <symbol>)
       (help <class> [<n>])
       (help <expr>)
       (help <string>)
       (help ? <query-type>)

I wrote a blog post about it:

http://whollyweirdwyrd.blogspot.com/2009/12/writing-help-macro.html

and the code can be found there:

http://dl.dropbox.com/u/2682770/mu/help_macro.clj

Any comments or code reviews are welcomed.

Happy Holidays

- budu

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to