diff options
author | Arun Isaac | 2022-06-29 01:13:26 +0530 |
---|---|---|
committer | Arun Isaac | 2022-06-29 01:14:56 +0530 |
commit | 983fc85243a5b914cc2fbfaee60e0e1e6ef0b614 (patch) | |
tree | 61286cd72730db37201c65668213f5921f6f93aa /bin | |
parent | ed9aad811eae0dd8f2f992afd841b9f5e81481cd (diff) | |
download | tissue-983fc85243a5b914cc2fbfaee60e0e1e6ef0b614.tar.gz tissue-983fc85243a5b914cc2fbfaee60e0e1e6ef0b614.tar.lz tissue-983fc85243a5b914cc2fbfaee60e0e1e6ef0b614.zip |
tissue: Add `tissue index' subcommand.
* bin/tissue (tissue-index): New function.
(print-usage): List `tissue index' subcommand.
(main): Call tissue-index.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/tissue | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -254,6 +254,18 @@ Run a web search service for the current repository. %xapian-index (tissue-configuration-web-css (load-config))))))) +;; This is a noop, since the index is built on any tissue command. It +;; exists just for the --help usage summary. +(define tissue-index + (match-lambda* + (("--help") + (format #t "Usage: ~a index +Index files in repository. + +" + (command-line-program))) + (() #t))) + (define (print-usage) (format #t "Usage: ~a COMMAND [OPTIONS] [ARGS] @@ -264,6 +276,7 @@ COMMAND must be one of the sub-commands listed below: repl run a Guile script in a tissue environment web export repository as website run-web run a web search service + index index files To get usage information for one of these sub-commands, run ~a COMMAND --help @@ -332,6 +345,7 @@ top-level of the git repository." ("repl" tissue-repl) ("web" tissue-web) ("run-web" tissue-run-web) + ("index" tissue-index) (invalid-command (format (current-error-port) "Invalid command `~a'~%~%" invalid-command) |