Skip to content

Commit c8b8291

Browse files
committed
add example and explaination
1 parent ef1f3e3 commit c8b8291

26 files changed

+200
-22
lines changed

docs/api/chat/eventEmitter.md

Whitespace-only changes.

docs/api/chat/userMessageListener.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ data:
1515
link: userMessageListener.md
1616
---
1717
<CBBaseInfo/>
18-
<CBParameters/>
18+
<CBParameters/>
19+
20+
### Status
21+
Working Progress....

docs/api/chat/waitforReply.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,17 @@ data:
1919
link: waitforReply.md
2020
---
2121
<CBBaseInfo/>
22-
<CBParameters/>
22+
<CBParameters/>
23+
24+
### Example:
25+
26+
```js
27+
28+
const message = await codebolt.chat.waitforReply(message: string)
29+
30+
```
31+
32+
### Explaination
33+
34+
The codebolt.chat.waitforReply(message: string) function is used to send a message on the codebolt chat and wait for the reply. This function enables real-time communication by allowing the script to send text messages on the codebolt chat. This function returns the reply message, which we can store in a variable and use.
35+

docs/api/codeparsers/getAstTreeInFile.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@ data:
2020
link: getAstTreeInFile.md
2121
---
2222
<CBBaseInfo/>
23-
<CBParameters/>
23+
<CBParameters/>
24+
25+
### Status
26+
27+
Working Progress...

docs/api/codeparsers/getClassesInFile.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ data:
1717
link: getClassesInFile.md
1818
---
1919
<CBBaseInfo/>
20-
<CBParameters/>
20+
<CBParameters/>
21+
22+
### Status
23+
24+
Working Progress...

docs/api/codeparsers/getFunctionsinClass.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@ data:
2020
link: getFunctionsinClass.md
2121
---
2222
<CBBaseInfo/>
23-
<CBParameters/>
23+
<CBParameters/>
24+
25+
### Status
26+
27+
Working Progress...

docs/api/codeutils/getAllFilesAsMarkDown.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,31 @@ data:
1616
link: getAllFilesAsMarkDown.md
1717
---
1818
<CBBaseInfo/>
19-
<CBParameters/>
19+
<CBParameters/>
20+
21+
### Example
22+
23+
```js
24+
25+
////test.js
26+
27+
function foo(d) {
28+
d += 3;
29+
return d+999
30+
}
31+
function bar(d) {
32+
return d*100
33+
}
34+
35+
36+
///index.js
37+
38+
const getAllFilesAsMarkDown = await codebolt.codeutils.getAllFilesAsMarkDown();
39+
40+
```
41+
42+
![markdown](../../../static/img/markdown.png)
43+
44+
### Explaination
45+
46+
The codebolt.codeutils.getAllFilesAsMarkDown() function is used the Retrieves all files as Markdown. This Function returns the File as markdown, which we can store in a variable and use.

docs/api/codeutils/getJsTree.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,17 @@ data:
1919
link: getJsTree.md
2020
---
2121
<CBBaseInfo/>
22-
<CBParameters/>
22+
<CBParameters/>
23+
24+
### Examples
25+
26+
```js
27+
28+
const GetJsTree = await codebolt.codeutils.getJsTree();
29+
30+
```
31+
32+
33+
### Explaination
34+
35+
The method codebolt.codeutils.getJsTree(filePath: string) is designed to analyze a JavaScript file located at the given file path and return its tree structure. This tree structure is a hierarchical representation of the code within the file, which typically includes various elements such as functions, variables, classes, etc.

docs/api/codeutils/getMatcherList.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ data:
1616
link: getMatcherList.md
1717
---
1818
<CBBaseInfo/>
19-
<CBParameters/>
19+
<CBParameters/>
20+
21+
### Status
22+
Working Progress..

docs/api/codeutils/matchDetail.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ data:
1919
link: matchDetail.md
2020
---
2121
<CBBaseInfo/>
22-
<CBParameters/>
22+
<CBParameters/>
23+
24+
25+
### Status
26+
Working Progress..

0 commit comments

Comments
 (0)