Move help command to package of defined commands

Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
Emmanuel Bigeon 2018-10-14 10:55:55 -04:00
parent d5a7d4a16f
commit ae5dc1aeba
5 changed files with 17 additions and 11 deletions

View File

@ -1,5 +1,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>gclc</artifactId> <artifactId>gclc</artifactId>
<version>2.0.9-SNAPSHOT</version> <version>2.0.9-SNAPSHOT</version>
@ -47,16 +49,16 @@
</licenses> </licenses>
<reporting> <reporting>
<plugins> <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
</plugin>
<plugin> <plugin>
<groupId>com.github.sevntu-checkstyle</groupId> <groupId>com.github.sevntu-checkstyle</groupId>
<artifactId>dsm-maven-plugin</artifactId> <artifactId>dsm-maven-plugin</artifactId>
<version>2.2.0</version> <version>2.2.0</version>
</plugin> </plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
<version>2.0</version>
</plugin>
</plugins> </plugins>
</reporting> </reporting>
<developers> <developers>

View File

@ -36,7 +36,7 @@
* gclc:net.bigeon.gclc.command.HelpExecutor.java * gclc:net.bigeon.gclc.command.HelpExecutor.java
* Created on: Sep 6, 2014 * Created on: Sep 6, 2014
*/ */
package net.bigeon.gclc.command; package net.bigeon.gclc.command.base;
/*- /*-
* #%L * #%L
@ -73,6 +73,9 @@ package net.bigeon.gclc.command;
*/ */
import java.io.IOException; import java.io.IOException;
import net.bigeon.gclc.command.Command;
import net.bigeon.gclc.command.ICommand;
import net.bigeon.gclc.command.SubedCommand;
import net.bigeon.gclc.exception.CommandRunException; import net.bigeon.gclc.exception.CommandRunException;
import net.bigeon.gclc.exception.CommandRunExceptionType; import net.bigeon.gclc.exception.CommandRunExceptionType;
import net.bigeon.gclc.manager.ConsoleInput; import net.bigeon.gclc.manager.ConsoleInput;

View File

@ -5,7 +5,7 @@
* {@link net.bigeon.gclc.command.ParametrizedCommand} for commands with a * {@link net.bigeon.gclc.command.ParametrizedCommand} for commands with a
* predefined set of flags and option taking a string as value, the * predefined set of flags and option taking a string as value, the
* {@link net.bigeon.gclc.command.SubedCommand} for a command that is declined * {@link net.bigeon.gclc.command.SubedCommand} for a command that is declined
* in a set of sub commands, the {@link net.bigeon.gclc.command.HelpExecutor} * in a set of sub commands, the {@link net.bigeon.gclc.command.base.HelpExecutor}
* for help display of other commands and the * for help display of other commands and the
* *
* @author Emmanuel BIGEON */ * @author Emmanuel BIGEON */

View File

@ -70,9 +70,9 @@ package net.bigeon.gclc;
import java.io.IOException; import java.io.IOException;
import net.bigeon.gclc.command.Command; import net.bigeon.gclc.command.Command;
import net.bigeon.gclc.command.HelpExecutor;
import net.bigeon.gclc.command.ICommandProvider; import net.bigeon.gclc.command.ICommandProvider;
import net.bigeon.gclc.command.base.ExitCommand; import net.bigeon.gclc.command.base.ExitCommand;
import net.bigeon.gclc.command.base.HelpExecutor;
import net.bigeon.gclc.exception.CommandRunException; import net.bigeon.gclc.exception.CommandRunException;
import net.bigeon.gclc.exception.InvalidCommandName; import net.bigeon.gclc.exception.InvalidCommandName;
import net.bigeon.gclc.manager.ConsoleInput; import net.bigeon.gclc.manager.ConsoleInput;

View File

@ -78,6 +78,7 @@ import java.io.IOException;
import org.junit.Test; import org.junit.Test;
import net.bigeon.gclc.command.base.HelpExecutor;
import net.bigeon.gclc.command.base.MockCommand; import net.bigeon.gclc.command.base.MockCommand;
import net.bigeon.gclc.exception.CommandRunException; import net.bigeon.gclc.exception.CommandRunException;
import net.bigeon.gclc.manager.ConsoleInput; import net.bigeon.gclc.manager.ConsoleInput;
@ -92,7 +93,7 @@ import net.bigeon.gclc.utils.PipedConsoleOutput;
public class HelpExecutorTest { public class HelpExecutorTest {
/** Test method for /** Test method for
* {@link net.bigeon.gclc.command.HelpExecutor#execute(ConsoleOutput, ConsoleInput, String...)}. * {@link net.bigeon.gclc.command.base.HelpExecutor#execute(ConsoleOutput, ConsoleInput, String...)}.
* *
* @throws CommandRunException if the test failed * @throws CommandRunException if the test failed
* @throws IOException if the test failed */ * @throws IOException if the test failed */
@ -130,7 +131,7 @@ public class HelpExecutorTest {
} }
} }
/** Test method for {@link net.bigeon.gclc.command.HelpExecutor#tip()}. /** Test method for {@link net.bigeon.gclc.command.base.HelpExecutor#tip()}.
* *
* @throws IOException if the test failed */ * @throws IOException if the test failed */
@Test @Test