diff options
author | Arun Isaac | 2022-06-26 23:39:09 +0530 |
---|---|---|
committer | Arun Isaac | 2022-06-27 00:19:51 +0530 |
commit | 76991c195740d2edee0a1887b4850e438d8e83d2 (patch) | |
tree | d4672cf94f4d03b4aadc765e5bf6f4010c99ff83 /bin | |
parent | ef47614b81052f2a2758ad26c194a44a8ce441c6 (diff) | |
download | tissue-76991c195740d2edee0a1887b4850e438d8e83d2.tar.gz tissue-76991c195740d2edee0a1887b4850e438d8e83d2.tar.lz tissue-76991c195740d2edee0a1887b4850e438d8e83d2.zip |
issue: Replace issues thunk with read-gemtext-issue reader.
* tissue/issue.scm (%issue-files): Delete parameter.
(issues): Delete function.
(read-gemtext-issue): New public function.
(file-modification-table-for-current-repository): New function.
* bin/tissue (main): Do not parameterize %issue-files.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/tissue | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -93,14 +93,6 @@ to run tissue." (match (command-line) ((program _ ...) program))) -(define (print-document document) - "Print DOCUMENT, an <issue> or <document> object." - ((cond - ((issue? document) print-issue) - ((doc:document? document) doc:print-document) - (else (raise (unknown-document-type-violation document)))) - document)) - (define (print-issue issue) "Print ISSUE." (let ((number-of-posts (length (issue-posts issue)))) @@ -174,6 +166,14 @@ to run tissue." (newline) (newline))) +(define (print-document document) + "Print DOCUMENT, an <issue> or <document> object." + ((cond + ((issue? document) print-issue) + ((doc:document? document) doc:print-document) + (else (raise (unknown-document-type-violation document)))) + document)) + (define (alist->document alist) "Convert ALIST to an <issue> or <document> object." ((case (assq-ref alist 'type) @@ -396,8 +396,7 @@ DB." (exit #f))) (call-with-current-directory (git-top-level) (lambda () - (parameterize ((%issue-files (tissue-configuration-issue-files (load-config))) - (%aliases (tissue-configuration-aliases (load-config)))) + (parameterize ((%aliases (tissue-configuration-aliases (load-config)))) ;; Create hidden tissue directory unless it exists. (unless (file-exists? %state-directory) (mkdir %state-directory)) |