mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-01-02 03:57:05 -06:00
start CLI DSL for parameterization
This commit is contained in:
parent
40d6e60085
commit
f16f3fb325
@ -0,0 +1,10 @@
|
||||
package io.nosqlbench.engine.api.clireader;
|
||||
|
||||
public class CLI {
|
||||
private CLI() {
|
||||
}
|
||||
|
||||
public static CLI builder() {
|
||||
return new CLI();
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package io.nosqlbench.engine.api.clireader.dsl;
|
||||
|
||||
public interface CLIFacets {
|
||||
|
||||
public static interface WantsAnyOption
|
||||
extends WantsGlobalOption {
|
||||
}
|
||||
|
||||
public static interface WantsParameterizedCommand {
|
||||
public WantsAnyOption namedParams();
|
||||
}
|
||||
|
||||
public static interface WantsGlobalOption {
|
||||
public WantsOptionType global(String optionName);
|
||||
}
|
||||
|
||||
public static interface WantsOptionType {
|
||||
public WantsAnyOption toggle();
|
||||
public WantsAnyOption string();
|
||||
public WantsAnyOption number();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
/**
|
||||
* This package is intended to consolidate the command line
|
||||
* parsing logic over time so that all of the CLI parsing
|
||||
* is separately testable and usable by other modules in NoSqlBench.
|
||||
*/
|
||||
package io.nosqlbench.engine.api.clireader;
|
@ -0,0 +1,13 @@
|
||||
package io.nosqlbench.engine.api.clireader;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
class CLITest {
|
||||
|
||||
@Test
|
||||
public void name() {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user