1
0
mirror of https://github.com/go-task/task.git synced 2024-12-12 10:45:49 +02:00

docs: remote root taskfiles

This commit is contained in:
Pete Davison 2024-03-10 21:43:38 +00:00
parent b5df4e89c2
commit a496a1dfa8
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,10 @@
version: '3'
tasks:
default:
cmds:
- task: hello
hello:
cmds:
- echo "Hello Task!"

View File

@ -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