package ee.shy.cli;

import ee.shy.core.Repository;

/**
 * A simple command for testing.
 */
public class TestCommand implements Command {

    private final String name;

    public TestCommand(String name) {
        this.name = name;
    }

    @Override
    public void execute(String[] args) {
        System.out.println(name);
        Repository repository = Repository.newExisting();
        if (repository != null) {
            System.out.println("Found repository!");
        } else {
            System.out.println("Repository not found!");
        }
    }

    @Override
    public String getHelp() {
        return "Here be TestCommand's help text.";
    }
}

@@ -388,179 +388,8 @@
 ();%0A
-        if (repository != null) %7B%0A            System.out.println(%22Found repository!%22);%0A        %7D else %7B%0A            System.out.println(%22Repository not found!%22);%0A        %7D%0A
     

Remove excess condition check in TestCommand