(self, tracing_config: TracingConfig)
| 160 | |
| 161 | impl Subcommand { |
| 162 | pub(crate) fn execute(self, tracing_config: TracingConfig) -> Result<(), Report<GraphError>> { |
| 163 | match self { |
| 164 | Self::Server(args) => block_on(server(*args), "Graph API", tracing_config), |
| 165 | Self::AdminServer(args) => { |
| 166 | block_on(admin_server(*args), "Graph Admin API", tracing_config) |
| 167 | } |
| 168 | Self::Migrate(args) => block_on(migrate(*args), "Graph Migrations", tracing_config), |
| 169 | Self::TypeFetcher(args) => { |
| 170 | block_on(type_fetcher(*args), "Type Fetcher", tracing_config) |
| 171 | } |
| 172 | Self::Completions(ref args) => { |
| 173 | completions(args); |
| 174 | Ok(()) |
| 175 | } |
| 176 | Self::Snapshot(args) => block_on(snapshot(*args), "Graph Snapshot", tracing_config), |
| 177 | Self::ReindexCache(args) => { |
| 178 | block_on(reindex_cache(*args), "Graph Indexer", tracing_config) |
| 179 | } |
| 180 | } |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | pub async fn wait_healthcheck<F, Ret>( |
no test coverage detected