mirror of
https://github.com/go-task/task.git
synced 2025-06-27 00:51:05 +02:00
docs: fix some examples to use spaces instead of tabs (#2002)
This commit is contained in:
@ -341,43 +341,43 @@ It means that the included Taskfile tasks will be available without the namespac
|
|||||||
|
|
||||||
|
|
||||||
<Tabs defaultValue="1"
|
<Tabs defaultValue="1"
|
||||||
values={[
|
values={[
|
||||||
{label: 'Taskfile.yml', value: '1'},
|
{label: 'Taskfile.yml', value: '1'},
|
||||||
{label: 'Included.yml', value: '2'}
|
{label: 'Included.yml', value: '2'}
|
||||||
]}>
|
]}>
|
||||||
|
|
||||||
<TabItem value="1">
|
<TabItem value="1">
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
includes:
|
includes:
|
||||||
lib:
|
lib:
|
||||||
taskfile: ./Included.yml
|
taskfile: ./Included.yml
|
||||||
flatten: true
|
flatten: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
greet:
|
greet:
|
||||||
cmds:
|
cmds:
|
||||||
- echo "Greet"
|
- echo "Greet"
|
||||||
- task: foo
|
- task: foo
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="2">
|
<TabItem value="2">
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
foo:
|
foo:
|
||||||
cmds:
|
cmds:
|
||||||
- echo "Foo"
|
- echo "Foo"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
</TabItem></Tabs>
|
</TabItem></Tabs>
|
||||||
|
|
||||||
|
|
||||||
If you run `task -a` it will print :
|
If you run `task -a` it will print :
|
||||||
@ -400,12 +400,12 @@ Foo
|
|||||||
If multiple tasks have the same name, an error will be thrown:
|
If multiple tasks have the same name, an error will be thrown:
|
||||||
|
|
||||||
<Tabs defaultValue="1"
|
<Tabs defaultValue="1"
|
||||||
values={[
|
values={[
|
||||||
{label: 'Taskfile.yml', value: '1'},
|
{label: 'Taskfile.yml', value: '1'},
|
||||||
{label: 'Included.yml', value: '2'}
|
{label: 'Included.yml', value: '2'}
|
||||||
]}>
|
]}>
|
||||||
|
|
||||||
<TabItem value="1">
|
<TabItem value="1">
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
version: '3'
|
version: '3'
|
||||||
@ -419,23 +419,23 @@ If multiple tasks have the same name, an error will be thrown:
|
|||||||
cmds:
|
cmds:
|
||||||
- echo "Greet"
|
- echo "Greet"
|
||||||
- task: foo
|
- task: foo
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="2">
|
<TabItem value="2">
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
greet:
|
greet:
|
||||||
cmds:
|
cmds:
|
||||||
- echo "Foo"
|
- echo "Foo"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
</TabItem></Tabs>
|
</TabItem></Tabs>
|
||||||
|
|
||||||
If you run `task -a` it will print:
|
If you run `task -a` it will print:
|
||||||
```text
|
```text
|
||||||
|
Reference in New Issue
Block a user