-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prototype implementation using Scala reflection to show accessible members when running cbt
#538
base: master
Are you sure you want to change the base?
Conversation
Those |
Using one of the approaches mentioned here might do the trick: https://stackoverflow.com/questions/23785439/getting-typetag-from-a-classname-string |
so what's not working yet? |
I am still a little concerned about performance with this |
I've updated the prototype and I'm now confused. It seems to partially work! But why? I've basically bludgeoned There seems to be some issues with calling tasks defined in the CBT scope at the moment — not sure why. I believe scala reflection is still not thread safe. |
Comparison of running before
after
|
Could this be achieved with something similar to ammonite's router ? IE, when compiling the build, a macro could take care of aggregating the callable methods into a router that effectively acts as a single entry point to cbt. I assume this would create overhead when compiling the build would allow for safer method calls, allow for calling methods with arguments from the terminal |
As things currently stand, running
cbt
shows "" for accessible members of Build but a whole bunch from CBT