mirror of https://github.com/apache/druid.git
add tools pull-deps to cli
This commit is contained in:
parent
faa4f4ac9b
commit
ef88f37bbe
|
@ -59,7 +59,7 @@ public class Main
|
||||||
builder.withGroup("tools")
|
builder.withGroup("tools")
|
||||||
.withDescription("Various tools for working with Druid")
|
.withDescription("Various tools for working with Druid")
|
||||||
.withDefaultCommand(Help.class)
|
.withDefaultCommand(Help.class)
|
||||||
.withCommands(ConvertProperties.class, DruidJsonValidator.class);
|
.withCommands(ConvertProperties.class, DruidJsonValidator.class, PullDependencies.class);
|
||||||
|
|
||||||
builder.withGroup("index")
|
builder.withGroup("index")
|
||||||
.withDescription("Run indexing for druid")
|
.withDescription("Run indexing for druid")
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
package io.druid.cli;
|
||||||
|
|
||||||
|
import io.airlift.command.Command;
|
||||||
|
|
||||||
|
|
||||||
|
@Command(
|
||||||
|
name = "pull-deps",
|
||||||
|
description = "Pull down dependencies to the local repository specified by druid.extensions.localRepository"
|
||||||
|
)
|
||||||
|
public class PullDependencies implements Runnable
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
// dependencies are pulled down as a side-effect of Guice injection
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue