Open ixje opened 3 months ago
The current
CLI
can't do this at the moment. Environment.CommandLine
won't work in plugins either. But will be noted.
Apparently --config
was already added and I didn't realize it.
So that leaves --ignore-plugin-network
console command currently only work on cli itself. ww can mark this and add it before the next version.
All plugins will need to be updated as well.
Summary or problem description Switching between networks with
neo-cli
has always been a hassle becauseconfig.json
config.json
in which aNetwork
field is defined that must match the globalconfig.json
This means that every time you wish to switch you must update the global
config.json
and all plugin config files, or duplicate the whole setup in another directory. Compare this toneo-go
where you can specify a config file and the rest just works.Do you have any solution you want to propose? I want to propose 2 command line options
--config-file
allows you to override which file is loaded as the global config--ignore-plugin-network
allows you to ignore theNetwork
field check e.g. https://github.com/neo-project/neo/blob/efbdc94c541ccc70c09e5dd745bb73e2160e6312/src/Plugins/ApplicationLogs/LogReader.cs#L72-L73If the options are omitted the old behaviour will be used.
Where in the software does this update applies to?