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/tasks.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,25 @@
2
2
3
3
// TBD
4
4
5
+
### Common tasks
6
+
7
+
#### Xake.SystemTasks
8
+
Module shell provides actions related to command shell.
9
+
Usage:
10
+
```fsharp
11
+
open Xake.SystemTasks
12
+
let! errorlevel = system (fun o -> o) "ls" ["-lr"]
13
+
```
14
+
15
+
There two predefined function for passing task settings:
16
+
```fsharp
17
+
open Xake.SystemTasks
18
+
let! errorlevel = system (useClr >> checkErrorLevel) "ls" ["-lr"]
19
+
```
20
+
The first sets `UseClr` which instructs system command to run `mono <cmd>`. The second one instructs **system** to fail when command returned non-zero errorlevel.
21
+
22
+
> Notice there's another `system` action in Xake.CommonTasks. It lacks the first parameter (for settings) and is marked as obsolete.
23
+
5
24
### File tasks
6
25
7
26
These tasks allows to perform various file operations. Using these tasks ensures the dependencies are properly resolved are recorded.
0 commit comments