A script to calculate recipe costs from concise recipe definition file.
Find a file
2025-05-06 00:42:11 +02:00
.vscode init 2024-03-24 05:16:08 +01:00
example Add step tree dispaly. 2025-05-06 00:42:11 +02:00
src Add step tree dispaly. 2025-05-06 00:42:11 +02:00
.gitignore init 2024-03-24 05:16:08 +01:00
build.sh init 2024-03-24 05:16:08 +01:00
deno.json Add step tree dispaly. 2025-05-06 00:42:11 +02:00
README.md init 2024-03-24 05:16:08 +01:00

reciper

A script to calculate recipe costs from concise recipe definition file.

Usage

Usage:
reciper <recipe_file>

With the file example/demo as input :


# 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 :

$ ./bin/reciper example/demo
# To produce :
#  - 3 a 
#  - 2 b 
#  
# Get :
#  - 17 c 
#