diff --git a/app/deploy_types.py b/app/deploy_types.py index 794ba4f9..2c8ce85e 100644 --- a/app/deploy_types.py +++ b/app/deploy_types.py @@ -57,6 +57,7 @@ class LaconicStackSetupCommand: initialize_network: bool join_network: bool create_network: bool + gentx_file_list: str network_dir: str diff --git a/app/deployment_create.py b/app/deployment_create.py index 53e23e8c..2e8181c9 100644 --- a/app/deployment_create.py +++ b/app/deployment_create.py @@ -255,15 +255,17 @@ def create(ctx, spec_file, deployment_dir): # the plugin boundary @click.command() @click.option("--node-moniker", help="Moniker for this node") -@click.option("--chain-id", help="Supply the new chain id") +@click.option("--chain-id", help="The new chain id") @click.option("--key-name", help="Name for new node key") +@click.option("--gentx-files", help="List of comma-delimited gentx filenames from other nodes") @click.option("--initialize-network", is_flag=True, default=False, help="Initialize phase") @click.option("--join-network", is_flag=True, default=False, help="Join phase") @click.option("--create-network", is_flag=True, default=False, help="Create phase") @click.option("--network-dir", required=True, help="Directory for network files") @click.argument('extra_args', nargs=-1) @click.pass_context -def setup(ctx, node_moniker, chain_id, key_name, initialize_network, join_network, create_network, network_dir, extra_args): +def setup(ctx, node_moniker, chain_id, key_name, gentx_files, initialize_network, join_network, create_network, network_dir, + extra_args): parmeters = LaconicStackSetupCommand(chain_id, node_moniker, key_name, initialize_network, join_network, create_network, - network_dir) + gentx_files, network_dir) call_stack_deploy_setup(ctx.obj, parmeters, extra_args)