mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 06:44:51 +02:00
Allow square bracket expansion when specifying nameservers
I'm finally fed up enough with all the nameserver changes we've had to make on our self-allocated domains to improve the command. Now you can simply run: $ nomulus ... update_domain ... -n ns[1-4].foo.bar ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205282317
This commit is contained in:
parent
4b99fae1dd
commit
a2fe058865
9 changed files with 305 additions and 32 deletions
|
@ -29,7 +29,9 @@ import com.google.common.collect.ImmutableSet;
|
|||
import com.google.common.io.BaseEncoding;
|
||||
import com.google.template.soy.data.SoyListData;
|
||||
import com.google.template.soy.data.SoyMapData;
|
||||
import google.registry.tools.params.NameserversParameter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
|
@ -47,10 +49,11 @@ abstract class CreateOrUpdateDomainCommand extends MutatingEppToolCommand {
|
|||
private List<String> mainParameters;
|
||||
|
||||
@Parameter(
|
||||
names = {"-n", "--nameservers"},
|
||||
description = "Comma-separated list of nameservers, up to 13."
|
||||
)
|
||||
List<String> nameservers = new ArrayList<>();
|
||||
names = {"-n", "--nameservers"},
|
||||
description = "Comma-delimited list of nameservers, up to 13.",
|
||||
converter = NameserversParameter.class,
|
||||
validateWith = NameserversParameter.class)
|
||||
Set<String> nameservers = new HashSet<>();
|
||||
|
||||
@Parameter(
|
||||
names = {"-r", "--registrant"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue