MCPcopy Create free account
hub / github.com/hashintel/hash / execute

Method execute

apps/hash-graph/src/subcommand/mod.rs:162–181  ·  view source on GitHub ↗
(self, tracing_config: TracingConfig)

Source from the content-addressed store, hash-verified

160
161impl 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
184pub async fn wait_healthcheck<F, Ret>(

Callers 2

mainFunction · 0.45
run_type_fetcherFunction · 0.45

Calls 9

block_onFunction · 0.85
admin_serverFunction · 0.85
type_fetcherFunction · 0.85
completionsFunction · 0.85
OkInterface · 0.85
snapshotFunction · 0.85
reindex_cacheFunction · 0.85
serverFunction · 0.70
migrateFunction · 0.70

Tested by

no test coverage detected