GitRoot
Craft your forge, Build your project, Grow your community freely
1// SPDX-FileCopyrightText: 2026 Romain Maneschi <romain@gitroot.dev>
2//
3// SPDX-License-Identifier: MIT
4
5
6@external("gitroot", "forgeConfAS")
7export declare function _forgeConf(): i64
8@external("gitroot", "copyFileAS")
9export declare function _copyFile(fromfs: string, frompath: string, tofs: string, topath: string): i64
10@external("gitroot", "deleteFileAS")
11export declare function _deleteFile(fromfs: string, frompath: string): i64
12@external("gitroot", "moveFileAS")
13export declare function _moveFile(fromfs: string, frompath: string, tofs: string, topath: string): i64
14@external("gitroot", "replaceContentAS")
15export declare function _replaceContent(fromFs: string, filepath: string, oldContent: string, content: string): i64
16@external("gitroot", "writeContentAS")
17export declare function _writeContent(fromFs: string, filepath: string, content: string): i64
18@external("gitroot", "commitAllAS")
19export declare function _commitAll(message: string): void
20@external("gitroot", "diffWithParentAS")
21export declare function _diffWithParent(hash: string, oldfile: string, newfile: string): i64
22@external("gitroot", "logAS")
23export declare function _log(message: string): void
24@external("gitroot", "logErrorAS")
25export declare function _logError(messageptr: string, err: string): void
26@external("gitroot", "mergeAS")
27export declare function _merge(from: string, to: string): void
28@external("gitroot", "commitsAS")
29export declare function _commits(from: string, to: string):i64
30@external("gitroot", "execAS")
31export declare function _exec(exec: string): i64
32@external("gitroot", "reportAS")
33export declare function _report(report: string): void
34@external("gitroot", "canCallAS")
35export declare function _canCall(canCall: string): i32
36@external("gitroot", "callAS")
37export declare function _call(Call: string): i64