MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / command_server

Function command_server

crates/hyperqueue/src/client/commands/server.rs:161–170  ·  view source on GitHub ↗
(gsettings: &GlobalSettings, opts: ServerOpts)

Source from the content-addressed store, hash-verified

159}
160
161pub async fn command_server(gsettings: &GlobalSettings, opts: ServerOpts) -> anyhow::Result<()> {
162 match opts.subcmd {
163 ServerCommand::Start(opts) => start_server(gsettings, opts).await,
164 ServerCommand::Stop(opts) => stop_server(gsettings, opts).await,
165 ServerCommand::Info(opts) => command_server_info(gsettings, opts).await,
166 ServerCommand::GenerateAccess(opts) => command_server_generate_access(gsettings, opts),
167 ServerCommand::DebugDump(opts) => debug_dump(gsettings, opts).await,
168 ServerCommand::Wait(opts) => wait_for_server(gsettings, opts).await,
169 }
170}
171
172async fn start_server(gsettings: &GlobalSettings, opts: ServerStartOpts) -> anyhow::Result<()> {
173 let access_file: Option<FullAccessRecord> = opts

Callers 1

mainFunction · 0.85

Calls 6

command_server_infoFunction · 0.85
debug_dumpFunction · 0.85
wait_for_serverFunction · 0.85
start_serverFunction · 0.70
stop_serverFunction · 0.70

Tested by

no test coverage detected