From 78bf1aeeac3e0035da3fbcef23c980668d193fe6 Mon Sep 17 00:00:00 2001 From: Sascha Andres Date: Tue, 7 Mar 2017 09:47:41 +0100 Subject: [PATCH] Updated README Closes #4 --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index e49afd49..300ee1f9 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,30 @@ task assets build If Bash is available (Linux and Windows while on Git Bash), the commands will run in Bash, otherwise will fallback to `cmd` (on Windows). +### OS specific task support + +If you add a `Taskfile_{{GOOS}}` you can override or amend your taskfile based on the op;erating system. + +Example: + +Taskfile.yml: + +```yml +build: + cmds: + - echo "default" +``` + +Taskfile_linux.yml: + +```yml +build: + cmds: + - echo "linux" +``` + +Will print out `linux` and not default + ### Running task in another dir By default, tasks will be executed in the directory where the Taskfile is