Skip to content

Commit

Permalink
chore: update readme [ci-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Dec 3, 2022
1 parent dc0b189 commit 9e9e27c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Tackle is an experimental DSL for building modular code generators and declarati

[//]: # (- Declarative makefile alternatives for advanced toolchain management)

> If this project gets enough adoption / stars, it will be re-written in a compiled language.
> If this project gets enough adoption / stars, it will be re-written in a compiled language.
### Features

Expand Down Expand Up @@ -79,17 +79,18 @@ the:
- Hello
- cruel
- world!
one liner->: print --for the.words --if "item != 'cruel'" {{item}}
one liner->: print {{item}} --for the.words --if "item != 'cruel'"
multiple lines:
->: print
objects: {{item}}
for:
- Hello
- world!
if: item != 'cruel'
# Or combinations of the above with other methods like try/except
```

New hooks can be [made in python](https://robcxyz.github.io/tackle/python-hooks/)
which under the hood is a [pydantic](https://github.com/pydantic/pydantic) model.
New hooks can be [made in python](https://robcxyz.github.io/tackle/python-hooks/) which under the hood is a [pydantic](https://github.com/pydantic/pydantic) model.

```python
from tackle import BaseHook
Expand Down Expand Up @@ -117,7 +118,7 @@ greeter<-:
return: expression
```

And both can be [called in the same way](https://robcxyz.github.io/tackle/writing-tackle-files/).
And both can be [called the same way](https://robcxyz.github.io/tackle/writing-tackle-files/).

```yaml
hello: world!
Expand All @@ -133,7 +134,7 @@ Jinja template->: {{ greeter(hello) }}
With the declarative hooks being callable from the command line:

```shell
tackle hello.yaml --target world!
tackle hello.yaml greeter --target world!
# Or from a github repo
tackle robcxyz/tackle-hello-world --checkout v0.1.0
```
Expand Down

0 comments on commit 9e9e27c

Please sign in to comment.