MCPcopy Create free account
hub / github.com/dynjs/dynjs / executeFile

Method executeFile

src/main/java/org/dynjs/cli/Main.java:147–153  ·  view source on GitHub ↗
(File file)

Source from the content-addressed store, hash-verified

145 }
146
147 private void executeFile(File file) throws IOException {
148 try {
149 executeRunner(runtime.newRunner().withSource( file ));
150 } catch (FileNotFoundException e) {
151 getOutputStream().println("File " + file.getName() + " not found");
152 }
153 }
154
155 private void showUsage() {
156 getOutputStream().println("usage: " + getBinaryName() + getParser().printExample(OptionHandlerFilter.ALL, null) + "\n");

Callers 1

runMethod · 0.95

Calls 5

executeRunnerMethod · 0.95
getOutputStreamMethod · 0.95
newRunnerMethod · 0.80
withSourceMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected