From a496a1dfa8ee3b05213bfb0326b771e4b8a3c80d Mon Sep 17 00:00:00 2001 From: Pete Davison Date: Sun, 10 Mar 2024 21:43:38 +0000 Subject: [PATCH] docs: remote root taskfiles --- website/static/Taskfile.yml | 10 ++++++++++ .../version-latest/experiments/remote_taskfiles.md | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 website/static/Taskfile.yml diff --git a/website/static/Taskfile.yml b/website/static/Taskfile.yml new file mode 100644 index 00000000..e4712ffc --- /dev/null +++ b/website/static/Taskfile.yml @@ -0,0 +1,10 @@ +version: '3' + +tasks: + default: + cmds: + - task: hello + + hello: + cmds: + - echo "Hello Task!" diff --git a/website/versioned_docs/version-latest/experiments/remote_taskfiles.md b/website/versioned_docs/version-latest/experiments/remote_taskfiles.md index 40236509..852be8e5 100644 --- a/website/versioned_docs/version-latest/experiments/remote_taskfiles.md +++ b/website/versioned_docs/version-latest/experiments/remote_taskfiles.md @@ -48,6 +48,16 @@ tasks: and you run `task my-remote-namespace:hello`, it will print the text: "Hello from the remote Taskfile!" to your console. +## Root remote Taskfiles + +You can also specify a remote Taskfile as the entrypoint for Task by using the +`--taskfile` flag. This means you don't need to have any Taskfile defined +locally at all. For example: + +```shell +task --taskfile https://taskfile.dev hello +``` + ## Security Running commands from sources that you do not control is always a potential