|
|
@ -16,7 +16,7 @@
|
|
|
|
(current-directory)))
|
|
|
|
(current-directory)))
|
|
|
|
|
|
|
|
|
|
|
|
(define-for-syntax (command-error error-string)
|
|
|
|
(define-for-syntax (command-error error-string)
|
|
|
|
`(displayln (string-append "Pollen error: ", error-string)))
|
|
|
|
`(displayln (string-append "Error: ", error-string)))
|
|
|
|
|
|
|
|
|
|
|
|
(define-syntax (just-a-hook-for-the-macro stx)
|
|
|
|
(define-syntax (just-a-hook-for-the-macro stx)
|
|
|
|
(if arg-command-name
|
|
|
|
(if arg-command-name
|
|
|
@ -31,9 +31,9 @@
|
|
|
|
(parameterize ([world:current-project-root ,arg-project-directory])
|
|
|
|
(parameterize ([world:current-project-root ,arg-project-directory])
|
|
|
|
(start-server))))]
|
|
|
|
(start-server))))]
|
|
|
|
[else (if (regexp-match #rx"(shit|fuck)" arg-command-name)
|
|
|
|
[else (if (regexp-match #rx"(shit|fuck)" arg-command-name)
|
|
|
|
`(displayln ,(let ([responses '("Cursing at free software? Really?" "How uncouth." "Same to you, buddy.")])
|
|
|
|
(displayln (let ([responses '("Cursing at free software? Really?" "How uncouth." "Same to you, buddy.")])
|
|
|
|
(list-ref responses (random (length responses)))))
|
|
|
|
(list-ref responses (random (length responses)))))
|
|
|
|
(command-error (format "unknown command '~a'" arg-command-name)))]))
|
|
|
|
(command-error (format "unknown command ~a" arg-command-name)))]))
|
|
|
|
#'(begin)))
|
|
|
|
#'(begin)))
|
|
|
|
|
|
|
|
|
|
|
|
(just-a-hook-for-the-macro)
|
|
|
|
(just-a-hook-for-the-macro)
|
|
|
|