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:
parent
b5df4e89c2
commit
a496a1dfa8
10
website/static/Taskfile.yml
Normal file
10
website/static/Taskfile.yml
Normal file
@ -0,0 +1,10 @@
|
||||
version: '3'
|
||||
|
||||
tasks:
|
||||
default:
|
||||
cmds:
|
||||
- task: hello
|
||||
|
||||
hello:
|
||||
cmds:
|
||||
- echo "Hello Task!"
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user