43 lines
405 B
Markdown
43 lines
405 B
Markdown
# reciper
|
|
|
|
A script to calculate recipe costs from concise recipe definition file.
|
|
|
|
## Usage
|
|
|
|
```sh
|
|
Usage:
|
|
reciper <recipe_file>
|
|
```
|
|
|
|
With the file `example/demo` as input :
|
|
|
|
```sh
|
|
|
|
# main targets
|
|
3 a
|
|
2 b
|
|
|
|
# definition for a
|
|
a
|
|
2 c
|
|
3 b
|
|
|
|
# definition for b
|
|
b
|
|
1 c
|
|
|
|
# no definition for c
|
|
```
|
|
|
|
The output is :
|
|
|
|
```sh
|
|
$ ./bin/reciper example/demo
|
|
# To produce :
|
|
# - 3 a
|
|
# - 2 b
|
|
#
|
|
# Get :
|
|
# - 17 c
|
|
#
|
|
```
|