summaryrefslogtreecommitdiff
path: root/haunt/ui.scm
Commit message (Collapse)AuthorAgeFilesLines
* ui: Remove use of defunct haunt-error.David Thompson2015-04-111-1/+1
| | | | * haunt/ui.scm (run-haunt-command): Remove call to 'haunt-error'.
* ui: Improve option processing and help output.David Thompson2015-04-111-14/+56
| | | | | | | | | | | | | | * haunt/ui.scm (%common-options, %default-common-options): New variables. (simple-args-fols, show-common-options-help, leave, string->number*, load-config): New procedures. (haunt-error): Remove. (show-version-and-exit): Actually exit. Add 'name' argument. (haunt-main): Use new 'show-version-and-exit'. * haunt/ui/serve.scm (show-server-help): Remove. (show-help): New procedure. (%options, %default-options): New variables. (haunt-serve): Use SRFI-37 option processing.
* ui: Display version information.David Thompson2015-01-041-2/+17
| | | | | | | | | | | * haunt/config.scm: Delete. * haunt/config.scm.in: New file. * haunt/ui.scm (show-version-and-exit): New procedure. (program-name): Change default value. (haunt-main): Add version option. * haunt/ui/serve.scm (haunt-serve): Likewise. * configure.ac (AC_CONFIG_FILES): Add 'haunt/config.scm'. * .gitignore: Ignore 'haunt/config.scm'.
* Add serve command.David Thompson2015-01-041-3/+34
| | | | | | | | | | | | * haunt/config.scm: New file. * haunt/serve/mime-types.scm: New file. * haunt/serve/web-server.scm: New file. * haunt/ui/serve.scm: New file. * haunt/ui.scm (commands, program-name): New variables. (show-haunt-help): Display possible commands. (run-haunt-command): New procedure. (haunt-main): Run subcommands. * Makefile.am (SOURCES): Add files.
* First commit.David Thompson2015-01-041-0/+51