@Provides public ShellCommand ls() {
return new StdShellCommand(ImmutableList.of("ls"), "print current directory content") {
@Override
protected Optional<? extends ShellCommandRunner> doMatch(String line) {
return Optional.of(new ShellCommandRunner() {
@Override
public void run(RestxShell shell) throws Exception {
File currentDir = shell.currentLocation().toFile();
if (currentDir != null) {
if (currentDir.isDirectory()) {