FWIW, You can access a private var via the var special form: (var repl/refresh-tracker) (or #'repl/refresh-tracker for short)
HTH, -- Laurent 2012/10/10 Thomas Heller <th.hel...@gmail.com> > Hey Stuart, > > I wrote a little "autotest" script which uses tools.namespace to figure > out which tests to run. Basically I just watch the source files, when > modified I run (refresh) and use the repl/refresh-tracker var to find out > which tests should be executed. To do this I had to monkey-patch c.t.n.repl > since refresh-tracker is private. > > See https://gist.github.com/3865356 Line 6-15. > > Works well enough, but the monkey-patch kinda bothers me, so if you feel > like adding those functions I'd appreciate it. Maybe they are useful for > somebody else, since Mika mentioned something similar. > > Anyways, thanks for tools.namespace. > > Regards, > /thomas > > On Monday, October 8, 2012 1:04:32 AM UTC+2, Stuart Sierra wrote: >> >> Hi Mika, >> >> Due to the current governing process of the Clojure contributor >> agreement, I cannot accept GitHub pull requests, only patches submitted via >> http://dev.clojure.org/jira >> >> My intent is for the functions in clojure.tools.namespace.repl to be a >> high-level API for direct invocation by users. All the components are >> exposed in the namespaces c.t.n.track, c.t.n.files, etc. You should be able >> to compose the various pieces for different use cases. If you encounter a >> place where this is not possible, let me know and I will look into it. >> >> -S >> > -- > 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 > -- 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