(gsettings: &GlobalSettings, opts: ServerOpts)
| 159 | } |
| 160 | |
| 161 | pub 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 | |
| 172 | async fn start_server(gsettings: &GlobalSettings, opts: ServerStartOpts) -> anyhow::Result<()> { |
| 173 | let access_file: Option<FullAccessRecord> = opts |
no test coverage detected