Pass gentx file list on the command line

This commit is contained in:
David Boreham 2023-08-21 21:15:36 -06:00
parent bd5f75b728
commit 23904f0837
2 changed files with 6 additions and 3 deletions

View File

@ -57,6 +57,7 @@ class LaconicStackSetupCommand:
initialize_network: bool
join_network: bool
create_network: bool
gentx_file_list: str
network_dir: str

View File

@ -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)