()
| 141 | export type Status = z.infer<typeof Status> |
| 142 | |
| 143 | export async function status() { |
| 144 | return state().then((x) => { |
| 145 | const result: Status[] = [] |
| 146 | for (const client of x.clients) { |
| 147 | result.push({ |
| 148 | id: client.serverID, |
| 149 | name: x.servers[client.serverID].id, |
| 150 | root: path.relative(Instance.directory, client.root), |
| 151 | status: "connected", |
| 152 | }) |
| 153 | } |
| 154 | return result |
| 155 | }) |
| 156 | } |
| 157 | |
| 158 | async function getClients(file: string) { |
| 159 | const s = await state() |
no test coverage detected