aboutsummaryrefslogtreecommitdiff
path: root/doc/pass-stdin.scm
blob: 3bdc70ba357f2ada6a7418f8c12214f56cd2ab5c (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))