You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running npm run start on our CLI, the default chains are launched. However, I would like to add options to allow users to specify which chains to launch at startup.
I propose adding options to specify the desired chains using a comma-separated list. For example:
npm run start --chains evm:avalanche,moonbeam --chains move:aptos,sui
This command would start the EVM chains on Avalanche and Moonbeam, and the Move chains on Aptos and SUI.
I believe that this feature would greatly enhance the flexibility and customization options to running our examples, and would be a valuable addition for our users.
Here's an example script to parse the example command above:
const{ program }=require("commander");functioncollect(value,previous){returnprevious.concat([value]);}program.option("--chains <chains>","comma-separated list of chains to start",collect,[]).parse();constoptions=program.opts();constchains=options.chains.reduce((acc,chain)=>{const[protocol,names]=chain.split(":");constchainNames=names.split(",");return{
...acc,[protocol]: chainNames,};},{});console.log(chains);
When running npm run start on our CLI, the default chains are launched. However, I would like to add options to allow users to specify which chains to launch at startup.
I propose adding options to specify the desired chains using a comma-separated list. For example:
This command would start the EVM chains on Avalanche and Moonbeam, and the Move chains on Aptos and SUI.
I believe that this feature would greatly enhance the flexibility and customization options to running our examples, and would be a valuable addition for our users.
Here's an example script to parse the example command above:
Output
The text was updated successfully, but these errors were encountered: