Package com.buschmais.jqassistant.scm.neo4jshell

Source Code of com.buschmais.jqassistant.scm.neo4jshell.AvailableRulesApp

package com.buschmais.jqassistant.scm.neo4jshell;

import org.neo4j.helpers.Service;
import org.neo4j.shell.App;
import org.neo4j.shell.AppCommandParser;
import org.neo4j.shell.Continuation;
import org.neo4j.shell.Output;
import org.neo4j.shell.Session;

import com.buschmais.jqassistant.core.plugin.api.PluginRepositoryException;
import com.buschmais.jqassistant.core.report.api.ReportHelper;

@Service.Implementation(App.class)
public class AvailableRulesApp extends AbstractJQAssistantApp {

    public AvailableRulesApp() throws PluginRepositoryException {
    }

    @Override
    public String getCommand() {
        return "available-rules";
    }

    @Override
    public Continuation execute(AppCommandParser parser, Session session, Output out) throws Exception {
        new ReportHelper(new ShellConsole(out)).printRuleSet(getAvailableRules());
        return Continuation.INPUT_COMPLETE;
    }
}
TOP

Related Classes of com.buschmais.jqassistant.scm.neo4jshell.AvailableRulesApp

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.