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
Copy file name to clipboardExpand all lines: docs/manual/fknode-yaml.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,16 +195,16 @@ someCmd:
195
195
- <powershell -c 'echo foo'
196
196
```
197
197
198
-
They're an array of special strings / objects with a special prefix indicating type of cmd. Cmd type prefixes are:
198
+
They're an array of special strings / objects with a special prefix indicating type of Cmd. The type modifies the command by prefixing it before execution. Cmd type prefixes are:
199
199
200
-
| Cmd type prefix | Cmd type | Description |
200
+
| Cmd type prefix | Cmd type | Behavior |
201
201
| :--- | :--- | ---: |
202
-
| `~` | **SHELL SCRIPT** | Auto-prefixed with `powershell -c` on Windows and `bash -c` on macOS/Linux. Can be any command your shell recognizes. |
203
-
| `$` | **PROJECT SCRIPT** | Auto-prefixed with your runtime’s script run prefix (e.g. `npm run`, `deno task`). Can be any script your project has. |
204
-
| `=` | **PROJECT FILE** | Auto-prefixed with your runtime’s file run prefix. Should start with the path to a file, followed by any args you wish to pass. |
205
-
| `<` | **RAW EXEC** | Not auto-prefixed. Use this for manually invoking other programs. |
202
+
| `~` | **SHELL SCRIPT** | Auto-prefixes with `powershell -c` on Windows and `bash -c` on macOS/Linux. |
203
+
| `$` | **PROJECT SCRIPT** | Auto-prefixes with your runtime’s script run prefix (e.g. `npm run`, `deno task`). |
204
+
| `=` | **PROJECT FILE** | Auto-prefixes with your runtime’s file run prefix. |
205
+
| `<` | **RAW EXEC** | Doesn't auto-prefix. Use this for manually invoking other programs. |
206
206
207
-
For cross-platform scripting, you can use a `{ msft: cmd, posix: cmd }`, where MSFT runs on Windows and POSIX runs on macOS and Linux. Each Cmd needs to be prefixed. FuckingNode won't check if they're a different Cmd type whatsoever.
207
+
For cross-platform scripting, you can use a `{ msft: Cmd, posix: Cmd }`, where MSFT runs on Windows and POSIX runs on macOS and Linux. Each Cmd needs to be prefixed. FuckingNode won't check if they're a different Cmd type whatsoever.
208
208
209
209
It's something like this:
210
210
@@ -216,7 +216,7 @@ Info:
216
216
217
217
- All commands run in order and block each other.
218
218
- Colons are not required, but double colons are accepted. `~foo` is equal to `~"foo"`.
219
-
- Output of commands is not live. This means, if a command writes to the stdout step by step, you won't see it until it ends execution.
219
+
- Cmd output is not live, meaning if a command writes to the stdout step by step, you won't see that until it ends execution.
220
220
221
221
You can use CmdSets for the following project settings:
0 commit comments