/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.apache.gshell.core.guice;

import com.google.inject.AbstractModule;
import org.apache.gshell.command.CommandDocumenter;
import org.apache.gshell.core.command.CommandDocumenterImpl;
import org.apache.gshell.core.completer.AliasNameCompleter;
import org.apache.gshell.core.completer.CommandNameCompleter;
import org.apache.gshell.core.completer.CommandsCompleter;
import org.apache.gshell.core.completer.FileNameCompleter;
import org.apache.gshell.core.completer.VariableNameCompleter;
import org.apache.gshell.core.event.EventManagerImpl;
import org.apache.gshell.core.execute.CommandExecutorImpl;
import org.apache.gshell.core.parser.CommandLineParserImpl;
import org.apache.gshell.core.registry.AliasRegistryImpl;
import org.apache.gshell.core.registry.CommandRegistryImpl;
import org.apache.gshell.core.registry.CommandResolverImpl;
import org.apache.gshell.event.EventManager;
import org.apache.gshell.execute.CommandExecutor;
import org.apache.gshell.execute.CommandLineParser;
import org.apache.gshell.registry.AliasRegistry;
import org.apache.gshell.registry.CommandRegistrar;
import org.apache.gshell.registry.CommandRegistry;
import org.apache.gshell.registry.CommandResolver;

/**
 * Mvnsh module.
 *
 * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
 *
 * @since 2.0
 */
public class CoreModule
    extends AbstractModule
{
    @Override
    protected void configure() {
        // Core components
        bind(EventManager.class).to(EventManagerImpl.class);
        bind(AliasRegistry.class).to(AliasRegistryImpl.class);
        bind(CommandRegistry.class).to(CommandRegistryImpl.class);
        bind(CommandDocumenter.class).to(CommandDocumenterImpl.class);
        bind(CommandLineParser.class).to(CommandLineParserImpl.class);
        bind(CommandExecutor.class).to(CommandExecutorImpl.class);
        bind(CommandResolver.class).to(CommandResolverImpl.class);
        bind(CommandRegistrar.class).to(GuiceCommandRegistrar.class);

        // Completers
        bind(AliasNameCompleter.class);
        bind(CommandNameCompleter.class);
        bind(CommandsCompleter.class);
        bind(FileNameCompleter.class);
        bind(VariableNameCompleter.class);
    }
}
@@ -998,311 +998,8 @@
 pl;%0A
-import org.apache.gshell.core.completer.AliasNameCompleter;%0Aimport org.apache.gshell.core.completer.CommandNameCompleter;%0Aimport org.apache.gshell.core.completer.CommandsCompleter;%0Aimport org.apache.gshell.core.completer.FileNameCompleter;%0Aimport org.apache.gshell.core.completer.VariableNameCompleter;%0A
 impo
@@ -2472,234 +2472,8 @@
 ss);
-%0A%0A        // Completers%0A        bind(AliasNameCompleter.class);%0A        bind(CommandNameCompleter.class);%0A        bind(CommandsCompleter.class);%0A        bind(FileNameCompleter.class);%0A        bind(VariableNameCompleter.class);
 %0A   

Tidy guice module