aboutsummaryrefslogtreecommitdiff
path: root/doc/pass-stdin.scm
blob: af125ba94ec259fd247e8c5de0b90685994f7e98 (plain)
1
2
3
4
5
6
7
(define count-bytes
  (command #:inputs (file #:type File)
           #:run "wc" "-c"
           #:stdin file))

(workflow ((file #:type File))
  (count-bytes #:file file))