-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add convenience method to retrieve ScriptInfo/ModuleInfo from script #389
Comments
As we have: scijava-common/src/main/java/org/scijava/script/ScriptService.java Lines 124 to 128 in dc8ea6d
already, we might want to keep it consistent and overload the /**
* Creates the {@link ScriptInfo} metadata for the provided script.
*/
ScriptInfo getScript(String languageExtension, String script); Would you be fine with that, @ctrueden? I can submit a PR updating |
Sounds good, @imagejan! 👍 |
imagejan
added a commit
that referenced
this issue
Jun 19, 2020
This makes it easier to retrieve a ScriptInfo object from a script string (without going via File). Closes #389.
imagejan
added a commit
that referenced
this issue
Sep 3, 2020
This makes it easier to retrieve a ScriptInfo object from a script string (without going via File). Closes #389.
imagejan
added a commit
that referenced
this issue
Dec 18, 2020
This makes it easier to retrieve a ScriptInfo object from a script string (without going via File). Closes #389.
imagejan
added a commit
that referenced
this issue
Jan 19, 2021
This makes it easier to retrieve a ScriptInfo object from a script string (without going via File). Closes #389.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As suggested by @ctrueden on gitter, we should add a convenience method to
ScriptService
that returns aScriptInfo
orModuleInfo
for a given script.Something like
getScriptInfo(String filename, String script)
?The text was updated successfully, but these errors were encountered: