From e828ef572df90662473f68b8ab6074dc2b3e322f Mon Sep 17 00:00:00 2001 From: Dmitry Zakharov Date: Fri, 25 Oct 2024 11:51:11 +0400 Subject: [PATCH] Add Mainnet selection in Fuel contract import (#291) --- codegenerator/cli/CommandLineHelp.md | 34 ++++---- .../cli/src/cli_args/clap_definitions.rs | 4 +- codegenerator/cli/src/cli_args/init_config.rs | 81 +++++++++++++------ .../cli_args/interactive_init/evm_prompts.rs | 2 +- .../cli_args/interactive_init/fuel_prompts.rs | 16 +++- 5 files changed, 89 insertions(+), 48 deletions(-) diff --git a/codegenerator/cli/CommandLineHelp.md b/codegenerator/cli/CommandLineHelp.md index 0e79a2a50..eac40be45 100644 --- a/codegenerator/cli/CommandLineHelp.md +++ b/codegenerator/cli/CommandLineHelp.md @@ -11,9 +11,9 @@ This document contains the help content for the `envio` command-line program. * [`envio init contract-import local`↴](#envio-init-contract-import-local) * [`envio init template`↴](#envio-init-template) * [`envio init fuel`↴](#envio-init-fuel) -* [`envio init fuel template`↴](#envio-init-fuel-template) * [`envio init fuel contract-import`↴](#envio-init-fuel-contract-import) * [`envio init fuel contract-import local`↴](#envio-init-fuel-contract-import-local) +* [`envio init fuel template`↴](#envio-init-fuel-template) * [`envio dev`↴](#envio-dev) * [`envio stop`↴](#envio-stop) * [`envio codegen`↴](#envio-codegen) @@ -150,23 +150,8 @@ Initialization option for creating Fuel indexer ###### **Subcommands:** -* `template` — Initialize Fuel indexer from an example template * `contract-import` — Initialize Fuel indexer by importing config from a contract for a given chain - - - -## `envio init fuel template` - -Initialize Fuel indexer from an example template - -**Usage:** `envio init fuel template [OPTIONS]` - -###### **Options:** - -* `-t`, `--template