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
{{ message }}
This repository was archived by the owner on Jan 10, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: src/quick.ts
+74-1Lines changed: 74 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ import * as sc_controller from './controller';
36
36
import*assc_helpersfrom'./helpers';
37
37
import*asUUIDfrom'uuid';
38
38
import*asvscodefrom'vscode';
39
+
import*asWorkflowsfrom'node-workflows';
39
40
40
41
41
42
/**
@@ -205,6 +206,7 @@ function _generateHelpHTML(): string {
205
206
markdown+="## Functions\n";
206
207
markdown+="| Name | Description |\n";
207
208
markdown+="| ---- | --------- |\n";
209
+
markdown+="| `$(...results: any[]): Promise<any[]>` | Executes a list of actions and returns its results. |\n";
208
210
markdown+="| `$asString(val: any): string` | Returns a value as string. |\n";
209
211
markdown+="| `$cwd(newPath?: string, permanent?: boolean = false): string` | Gets or sets the current working directory for the execution. |\n";
210
212
markdown+="| `$disableHexView(flag?: boolean, permanent?: boolean = false): boolean` | Gets or sets if 'hex view' for binary results should be disabled or not. |\n";
@@ -228,6 +230,8 @@ function _generateHelpHTML(): string {
228
230
markdown+="| `$now(): Moment.Moment` | Returns the current [time](https://momentjs.com/docs/). |\n";
229
231
markdown+="| `$openHtml(html: string, tabTitle?: string): vscode.Thenable<any>` | Opens a HTML document in a new tab. |\n";
230
232
markdown+="| `$readFile(path: string): Buffer` | Reads the data of a file. |\n";
233
+
markdown+="| `$readJSON(file: string, encoding?: string = 'utf8'): any` | Reads a JSON file and returns the its object / value. |\n";
234
+
markdown+="| `$readString(file: string, encoding?: string = 'utf8'): any` | Reads a file as string. |\n";
231
235
markdown+="| `$require(id: string): any` | Loads a module from execution / extension context. |\n";
232
236
markdown+="| `$setState(newValue: any): any` | Sets the value of `$state` variable and returns the new value. |\n";
233
237
markdown+="| `$sha1(data: any, asBuffer: boolean = false): string` | Hashes data by SHA-1. |\n";
@@ -404,6 +408,49 @@ export function quickExecution() {
0 commit comments