Skip to content

Commit

Permalink
Update alias section in README
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuro9715 committed Feb 23, 2021
1 parent fb7e825 commit bd2e0bd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,18 +177,30 @@ hello world

### Task Alias

Just use z as command. Config will be inherited.

```yaml
# myconfig.yaml
tasks:
hello.world: echo hello world
helloworld:
z: hello.world
helloworld: z hello world # same as `z --config=myconfig.yaml hello world`
```
```
$z helloworld
$z --config=myconfig.yaml helloworld
hello world
```

Of course, you can use another config

```yaml
tasks:
hello:
tasks:
a: z --config=a.yaml hello
b: z --config=b.yaml hello
```
### Env
```
Expand Down
18 changes: 15 additions & 3 deletions README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,18 +177,30 @@ hello world

### Task Alias

Just use z as command. Config will be inherited.

```yaml
# myconfig.yaml
tasks:
hello.world: echo hello world
helloworld:
z: hello.world
helloworld: z hello world # same as `z --config=myconfig.yaml hello world`
```
```
$z helloworld
$z --config=myconfig.yaml helloworld
hello world
```

Of course, you can use another config

```yaml
tasks:
hello:
tasks:
a: z --config=a.yaml hello
b: z --config=b.yaml hello
```
### Env
```
Expand Down

0 comments on commit bd2e0bd

Please sign in to comment.