Package org.ctan.site.command
Class InitSearchCommand
java.lang.Object
io.dropwizard.core.cli.Command
org.ctan.site.command.InitSearchCommand
public class InitSearchCommand
extends io.dropwizard.core.cli.Command
The class
InitSearchCommand
contains the command line command to
create or initialise the search index.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.dropwizard.core.cli.Command
getDescription, getName, onError
-
Constructor Details
-
InitSearchCommand
public InitSearchCommand()This is the constructor forInitIndexCommand
.
-
-
Method Details
-
configure
public void configure(net.sourceforge.argparse4j.inf.Subparser cli) - Specified by:
configure
in classio.dropwizard.core.cli.Command
- See Also:
-
run
public void run(io.dropwizard.core.setup.Bootstrap<?> bootstrap, net.sourceforge.argparse4j.inf.Namespace namespace) throws Exception Executes when the user runs this command.- Specified by:
run
in classio.dropwizard.core.cli.Command
- Parameters:
bootstrap
- the bootstrap bootstrapnamespace
- the parsed command line namespace- Throws:
Exception
- if something goes wrong- See Also:
-