X-Git-Url: https://code.consxy.com/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fcli.lisp;h=fc3f7fc9ece28ef0f0f6f9ec77b95252c1b91a6b;hb=da046d80f2ea35db8bc03ee7691308ec3fbedd56;hp=08bd93b2115bc30e6d5e546385a8d01b9963afba;hpb=a721aff9cae179209c0d9b89798db5fdd6a25fd2;p=candle diff --git a/src/main/cli.lisp b/src/main/cli.lisp index 08bd93b..fc3f7fc 100644 --- a/src/main/cli.lisp +++ b/src/main/cli.lisp @@ -46,6 +46,7 @@ (let* ((name (subseq project-definition 0 pos)) (src (subseq project-definition (1+ pos)))) + (communication:query `(candle:add-project ,name ,src)) (format t "Added project ~A at src definition ~A~%" name src)))))) (defmethod execute-command ((command (eql :project)) args) @@ -79,7 +80,7 @@ ((eql error :required-argument-missing) (format *error-output* "Missing argument for ~A. See 'candle run --help'.~%" (car remaining-args))) (remaining-args (format *error-output* "Unknown option: ~A. See 'candle run --help'.~%" (car remaining-args))) ((opera:option-present :help options) (format t "~A" (opera:usage "candle run" (run-options)))) - (t (candle:run))))) + ((not (candle:run)) (sb-ext:exit :code 1))))) (defun run () (multiple-value-bind (options remaining-args error) (opera:process-arguments (main-options) (cdr sb-ext:*posix-argv*))