Create GenerateAllocationTokens nomulus tool command

This creates a specified number of tokens of a given schema, with a dryrun option
to not persist them.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=181403775
This commit is contained in:
mcilwain 2018-01-09 18:05:46 -08:00 committed by Ben McIlwain
parent ccbe958063
commit 646dcecd7e
8 changed files with 307 additions and 14 deletions

View file

@ -73,13 +73,13 @@ public class DeterministicStringGenerator extends StringGenerator {
}
}
public DeterministicStringGenerator(@Named("alphabet") String alphabet, Rule rule) {
public DeterministicStringGenerator(@Named("alphabetBase64") String alphabet, Rule rule) {
super(alphabet);
iterator = Iterators.cycle(charactersOf(alphabet));
this.rule = rule;
}
public DeterministicStringGenerator(@Named("alphabet") String alphabet) {
public DeterministicStringGenerator(@Named("alphabetBase64") String alphabet) {
this(alphabet, Rule.DEFAULT);
}
}