(path: string, message: string)
| 47 | } |
| 48 | }, |
| 49 | async commit(path: string, message: string) : Promise<Result<string, string>> { |
| 50 | try { |
| 51 | return { status: "ok", data: await TAURI_INVOKE("plugin:git|commit", { path, message }) }; |
| 52 | } catch (e) { |
| 53 | if(e instanceof Error) throw e; |
| 54 | else return { status: "error", error: e as any }; |
| 55 | } |
| 56 | }, |
| 57 | async log(path: string, limit: number) : Promise<Result<CommitInfo[], string>> { |
| 58 | try { |
| 59 | return { status: "ok", data: await TAURI_INVOKE("plugin:git|log", { path, limit }) }; |
no outgoing calls
no test coverage detected