@Override
public CommandResult execute(CommandInvocation commandInvocation) throws IOException {
setCommandInvocation(commandInvocation);
//make sure to reset loader on each execute
loader = new SimplePageLoader();
if(commandInvocation.in().getStdIn().available() > 0) {
java.util.Scanner s = new java.util.Scanner(commandInvocation.in().getStdIn()).useDelimiter("\\A");
String fileContent = s.hasNext() ? s.next() : "";
setInput(fileContent);
getCommandInvocation().attachConsoleCommand(this);