mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
docs: remote root taskfiles
This commit is contained in:
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
|
and you run `task my-remote-namespace:hello`, it will print the text: "Hello
|
||||||
from the remote Taskfile!" to your console.
|
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
|
## Security
|
||||||
|
|
||||||
Running commands from sources that you do not control is always a potential
|
Running commands from sources that you do not control is always a potential
|
||||||
|
Reference in New Issue
Block a user