aboutsummaryrefslogtreecommitdiff
path: root/module/entry-points/import.scm
blob: 5558433bf0cb5b5a964fefdd70c4626ed8d42f6d (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
32
33
34
35
36
37
(define-module (entry-points import)
  :export (main)
  :use-module (util)
  :use-module (ice-9 getopt-long)
  )

(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        ;
                                        ;
  )


  )

(define (main . _)
  'noop)