Skip to content

Commit 19c0211

Browse files
committed
Update for sending commands usage
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
1 parent 9de78d8 commit 19c0211

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/content/docs/dev/examples.mdx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,9 @@ interface CommandResult {
5757
```
5858

5959
```ts
60-
const result: CommandResult = await vscode.commands.executeCommand(`code-for-ibmi.runCommand`, {
61-
environment: `pase`,
62-
command: `ls`
63-
});
64-
65-
// or
66-
67-
const result = await vscode.commands.executeCommand(`code-for-ibmi.runCommand`, {
68-
environment: `pase`,
69-
command: `ls`
60+
const rows = await instance.getConnection().runCommand({
61+
command: `WRKACTJOB`,
62+
environment: `ile`
7063
});
7164
```
7265

0 commit comments

Comments
 (0)