(&self, id: &str)
| 50 | } |
| 51 | |
| 52 | fn load_spec(&self, id: &str) -> Result<Box<dyn sc_service::ChainSpec>, String> { |
| 53 | Ok(match id { |
| 54 | "dev" => Box::new(chain_spec::development_config()), |
| 55 | "" | "local" => Box::new(chain_spec::local_testnet_config()), |
| 56 | path => Box::new(chain_spec::ChainSpec::from_json_file( |
| 57 | std::path::PathBuf::from(path), |
| 58 | )?), |
| 59 | }) |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | /// Parse and run command line arguments |
nothing calls this directly
no test coverage detected