You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The script command does accept files only at the moment.
If the command would use something like this:
public void script(String ref) throws Exception {
Resource res = getApplicationContext().getResource(ref);
Reader reader = new StringReader(new String(res.getInputStream().readAllBytes(), StandardCharsets.UTF_8));
try (FileInputProvider inputProvider = new FileInputProvider(reader, parser)) {
getShell().run(inputProvider);
}
}
the script could be something like: "classpath:scripts/runthis" or "file:...." - all things possible which the app context can resolve.
To be backwards compatible you could prefix "ref" always with "file:.." if nothing else is specified on the argument.
The text was updated successfully, but these errors were encountered:
Thanks for a proposal and I think it's definitely something what shell could support. We're probably not going to work in this feature but if you think it's important to you then we'd welcome a PR!
The script command does accept files only at the moment.
If the command would use something like this:
the script could be something like: "classpath:scripts/runthis" or "file:...." - all things possible which the app context can resolve.
To be backwards compatible you could prefix "ref" always with "file:.." if nothing else is specified on the argument.
The text was updated successfully, but these errors were encountered: