GitRoot
Craft your forge, Build your project, Grow your community freely
1// SPDX-FileCopyrightText: 2025 Romain Maneschi <romain@gitroot.dev>
2//
3// SPDX-License-Identifier: MIT
4
5@external("gitroot", "forgeConf")
6export declare function _forgeConf(): i64
7
8@external("gitroot", "modifyContentAS")
9export declare function _modifyContent(filepath: string, content: string): void
10
11@external("gitroot", "modifyWebContentAS")
12export declare function _modifyWebContent(filepath: string, content: string): void
13
14@external("gitroot", "replaceWebContentAS")
15export declare function _replaceWebContent(filepath: string, oldContent: string, content: string): void
16
17@external("gitroot", "modifyCacheContentAS")
18export declare function _modifyCacheContent(filepath: string, content: string): void
19
20@external("gitroot", "copyFileAS")
21export declare function _copyFile(fromFs: string, fromPath: string, toFs: string, toPath: string): i64
22
23@external("gitroot", "deleteFileAS")
24export declare function _deleteFile(fromFs: string, fromPath: string): i64
25
26@external("gitroot", "moveFileAS")
27export declare function _moveFile(fromFs: string, fromPath: string, toFs: string, toPath: string): i64
28
29@external("gitroot", "replaceContentAS")
30export declare function _replaceContent(fromFs: string, filepath: string, oldContent: string, content: string): i64
31
32@external("gitroot", "writeContentAS")
33export declare function _writeContent(fromFs: string, filepath: string, content: string): i64
34
35@external("gitroot", "commitAllAS")
36export declare function _commitAll(message: string): void
37
38@external("gitroot", "diffWithParentAS")
39export declare function _diffWithParent(hash: string, oldFilepath: string, newFilepath: string): i64
40
41@external("gitroot", "logAS")
42export declare function _log(message: string): void
43
44@external("gitroot", "logErrorAS")
45export declare function _logError(message: string, error: string): void
46
47@external("gitroot", "mergeAS")
48export declare function _merge(from: string, to: string): void
49
50@external("gitroot", "commitsAS")
51export declare function _commits(from: string, to: string): i64
52
53@external("gitroot", "execAS")
54export declare function _exec(exec: string): i64;
55
56@external("gitroot", "reportAS")
57export declare function _report(report: string): void
58
59@external()
60export declare function _can_call(toCall: string): i32;
61
62@external()
63export declare function _call(toCall: string): i64;