You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**IO_GetSamples** * | Saves file with code examples in the user script. |
54
+
| getScriptContent | Retrieves the content of the script file. |
55
+
| getScriptFiles | Retrieves a list of files associated with a script based on its script_id. |
56
+
| getTemplateScriptFiles | Fetches a list of template files (script_id of the template is defined in the script properties, default template id is set to the library's id). |
57
+
| assignTemplate | Initializes the class and sets the ID of the template script as the data source. |
| getScriptContent | Allows fetching the content of a script file based on its script_id. |
49
-
| IO_GetScriptFiles | Retrieves a list of files associated with a script based on its script_id. |
50
-
| IO_GetTemplateScriptFiles | Fetches a list of template files (script_id of the template is defined in the script properties; default template id is set to the library's id). |
51
-
| IO_UpdateFile | Updates an existing file within the script. |
52
-
| IO_AddNewFile | Adds a new file or replaces an existing one within the script. |
67
+
| assignTemplate | Initializes the class and sets the ID of the template script as the data source. |
68
+
|**Operations**|
69
+
| AddNewFile | Adds a new file or replaces an existing one within the script. |
70
+
| renameFile | Renames a file within the script. |
71
+
| createBlankFile | Creates a new blank file within the script. |
72
+
| setCustomSource | Sets the content of the source in a file within the script. |
73
+
| addFileToUserJson | Adds a file to the user's script. |
74
+
|**General**|
75
+
|**commit**\*| Applies the pending changes made to the script. |
76
+
| drop | Discards the local changes made to the script, without reverting a commit. |
77
+
| viewChanges | Displays a list of changes that will be applied to the script upon committing. |
78
+
| getChanges | Retrieves a list of changes that will be applied to the script upon committing. |
79
+
| getTemplateId | Retrieves the current ID of the script's template. |
You can copy the library and set the property manually or using the method (inside your library):
116
140
@@ -137,7 +161,7 @@ The library and your script template must be shared.
137
161
138
162
# Licence
139
163
140
-
[MIT](LICENCE)
164
+
[MIT](LICENSE)
141
165
142
166
<aname="author"></a>
143
167
@@ -151,6 +175,14 @@ If you have any questions and commissions for me, feel free to tell me.
151
175
152
176
# Update History
153
177
178
+
- v2.0.4 (May 12, 2024)
179
+
180
+
1. Completely rewritten the library code based on classes.
181
+
2. Added new methods:
182
+
- General class methods: 4 methods of [assignTemplate](#methods_class), [commit](#methods_class), [drop](#methods_class), [viewChanges](#methods_class), [getChanges](#methods_class) and [getTemplateId](#methods_class) were added.
183
+
- File operations: 8 methods of [getScriptContent](#methods_class), [AddNewFile](#methods_class), [renameFile](#methods_class), [createBlankFile](#methods_class), [setCustomSource](#methods_class) and [addFileToUserJson](#methods_class) were added.
0 commit comments