Skip to content

Commit

Permalink
added note on multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-dietrich committed Sep 11, 2022
1 parent ab638fd commit d3bd588
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,28 @@ You may optionally specify any of the following module config, the `runCommand`
```js
{
"editorText": "Starting text in editor...",
"runCommand": "execute", // this is the subject under which the current code will be published for execution
"language": "cpp", // https://microsoft.github.io/monaco-editor
"runCommand": "execute",
"language": "cpp",
"theme": "light"
}
```

`runCommand` defines the subject under which the current editor-input will be published.
Other modules such as the [edrys_module-pyxtermjs](https://github.com/Cross-Lab-Project/edrys_module-pyxtermjs) can be configured to listen to this specific subject and execute some action when they receive this event.

### Multiple files

It is also possible to define multiple files like this.

```js
{
"file": {
"main.cpp": "Hello world...",
"main.h": "another file another day"
},
"runCommand": "execute",
"language": "cpp",
"theme": "light"
}
```

0 comments on commit d3bd588

Please sign in to comment.