Support upload command
[tt.git] / tt.rkt
diff --git a/tt.rkt b/tt.rkt
index 4b90055..59214ff 100644 (file)
--- a/tt.rkt
+++ b/tt.rkt
       "and <command> is one of"
       "r, read i   : Read the timeline."
       "d, download : Download the timeline."
+      "u, upload   : Upload your twtxt file (alias to execute ~/.tt/upload)."
       ""
       #:args (command . args)
       (start-logger log-level)
                (current-http-client/user-agent user-agent))
              (timeline-download num_workers (file->feeds filename))
              ))]
+        [(or "u" "upload")
+         (command-line
+             #:program
+             "tt upload"
+             #:args ()
+             (if (system (path->string (expand-user-path "~/.tt/upload")))
+               (exit 0)
+               (exit 1)))]
         [(or "r" "read")
          (let ([out-format 'multi-line]
                [order      'old->new])
This page took 0.025263 seconds and 4 git commands to generate.