Skip to content

Commit

Permalink
Tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sualeh authored and remkop committed Dec 14, 2020
1 parent a0574dd commit 7ff98c6
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ public class PicocliCommands implements CommandRegistry {
description = "Clears the screen", version = "1.0")
static class ClearScreen implements Callable<Void> {

private final LineReaderImpl reader;
private final LineReaderImpl reader;

ClearScreen(LineReaderImpl reader) {
this.reader = reader;
}
this.reader = reader;
}

public Void call() throws IOException {
public Void call() throws IOException {
reader.clearScreen();
return null;
}
Expand All @@ -83,14 +83,14 @@ public PicocliCommands(Supplier<Path> workDir, CommandLine cmd) {
}

public void includeClearScreenCommand(LineReader reader) {
if (reader == null) return;
ClearScreen clearScreen = new ClearScreen((LineReaderImpl) reader);
cmd.addSubcommand(clearScreen);
if (reader == null) return;
ClearScreen clearScreen = new ClearScreen((LineReaderImpl) reader);
cmd.addSubcommand(clearScreen);

commands.add("clear");
commands.add("clear");

aliasCommand.put("clear", "clear");
aliasCommand.put("cls", "clear");
aliasCommand.put("clear", "clear");
aliasCommand.put("cls", "clear");
}

/**
Expand Down

0 comments on commit 7ff98c6

Please sign in to comment.