/** * Run. * * @param fn the fn * @param logPath the log path */ public void run(@Nonnull Consumer<NotebookOutput> fn, @Nonnull CharSequence... logPath) { try (@Nonnull NotebookOutput log = getLog(logPath)) { NotebookOutput.concat(this::printHeader, MarkdownNotebookOutput.wrapFrontmatter(fn)).accept(log); } catch (IOException e) { throw new RuntimeException(e); } }
/** * Run. * * @param fn the fn * @param logPath the log path */ public void run(@Nonnull Consumer<NotebookOutput> fn, @Nonnull CharSequence... logPath) { try (@Nonnull NotebookOutput log = getLog(logPath)) { NotebookOutput.concat(this::printHeader, MarkdownNotebookOutput.wrapFrontmatter(fn)).accept(log); } catch (IOException e) { throw new RuntimeException(e); } }
/** * Run. * * @param fn the fn * @param logPath the log path */ public void run(@Nonnull Consumer<NotebookOutput> fn, @Nonnull CharSequence... logPath) { try (@Nonnull NotebookOutput log = getLog(logPath)) { NotebookOutput.concat(this::printHeader, MarkdownNotebookOutput.wrapFrontmatter(fn)).accept(log); } catch (IOException e) { throw new RuntimeException(e); } }