aboutsummaryrefslogtreecommitdiff
path: root/module/output/import.scm
blob: 47f4fd473873ad8df887a00d1eda1cd29c57f77c (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
28
29
30
31
(define-module (output import)
  :use-module (util))

(define options
  '((calendar (value #t) (single-char #\c))
    (source (value #t) (single-char #\f))
    ))

(define (import-main calenadrs events args)
  (define opts (getopt-long args options))

  (define calendar (option-ref opts 'calendar #f))

  (unless calendar
    (format (current-error-port)
            "Everything wroong~%"))


  ;; TODO save sourcetype and dir for vdir calendars

  #;
  (let ((component (make-vcomponent (option-ref args 'source "/dev/stdin")))) ;
                                        ;
    ;; Check UID                        ;
    ;; Add to calendar                  ;
    ;; Allocate file, save there        ;
                                        ;
  )


  )