Skip to content

Commit 0c0ed47

Browse files
authored
Merge pull request #403 from ethereum/yann300-patch-6
add log api doc
2 parents 014a524 + bdcd6e1 commit 0c0ed47

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

packages/api/doc/terminal.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# File System
2+
3+
- Name in Remix: `terminal`
4+
5+
|Type |Name |Description |
6+
|---------|-----------------------|------------|
7+
|_method_ |`log` |Log text to the terminal
8+
9+
## Examples
10+
11+
### Methods
12+
`log`: Get the name of the current file selected.
13+
```typescript
14+
await client.terminal.log({ type: 'info', value: 'I am a string' })
15+
// OR
16+
await client.call('terminal',{ type: 'info', value: 'I am a string' })
17+
```
18+
19+
20+
> Type Definitions can be found [here](../src/lib/terminal/api.ts)

0 commit comments

Comments
 (0)