blob: 1b5db87bf95d64dec8873ce5c81a36e504e7b6dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
(import (cook parse-internals)
(cook debug)
(chibi)
(chibi app)
(chibi config)
(chibi io)
(chibi test))
(define (cook cfg spec . args)
(display "called cook with: ")
(display args)
(newline))
(define (read-cook cfg spec recipe-file)
(let ((recipe (parse-cook (file->string recipe-file))))
(display (cook->list recipe))))
(run-application
`(cook
"Cooklang recipe tool"
(@
(help boolean (#\h ) "show this help"))
(or
(help "Show this help" () (,app-help-command))
(read "Read recipe in the terminal" () (,read-cook recipe)))
(,cook files ...))
(command-line))
|