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", "commitAllAS")
21export declare function _commitAll(message: string): void
22
23@external("gitroot", "diffWithParentAS")
24export declare function _diffWithParent(hash: string, oldFilepath: string, newFilepath: string): i64
25
26@external("gitroot", "logAS")
27export declare function _log(message: string): void
28
29@external("gitroot", "logErrorAS")
30export declare function _logError(message: string, error: string): void
31
32@external("gitroot", "mergeAS")
33export declare function _merge(from: string, to: string): void
34
35@external("gitroot", "commitsAS")
36export declare function _commits(from: string, to: string): i64