Coverage report: /home/ellis/comp/core/app/skel/skel.lisp
Kind | Covered | All | % |
expression | 0 | 34 | 0.0 |
branch | 0 | 2 | 0.0 |
Key
Not instrumented
Conditionalized out
Executed
Not executed
Both branches taken
One branch taken
Neither branch taken
1
;;; skel.lisp --- Skel Top-level
3
;; Top-level commands for interacting with the SKEL system.
13
(:export :with-project))
16
(:use :cl :std :cli :clap :tools
17
:cl-user :log :sb-debug :sb-ext
18
:net/proto/dns :obj/ast :vc :rdb
20
(:import-from :uri :uri)
21
(:use :skel :skel/core :skel/comp :skel/net))
25
(pushnew :skel *features*)
28
(clap:defcmd skc-db ())
29
(clap:defcmd skc-net ())
30
(clap:defcmd skc-serve ())
31
(clap:load-package-cli
34
((:name db :description "interact with the skel database" :thunk skc-db)
35
(:name net :description "communicate with skel clients and servers"
38
;; db is locked while skel is running, prevents multiple instances
40
;; (pushnew 'init-skel-logger *skel-init-hook*)
42
;; (pushnew 'sk-log-shutdown sb-ext:*exit-hooks*)
44
(defvar *skel-init-keywords* '(:config *skel-user-config*
45
:project *skel-project*
49
:registry *skel-registry*
50
:cd *default-pathname-defaults*))
52
(defun skel-keywordp (kw)
53
(getf *skel-init-keywords* kw))
55
(defun apply-skel-keywords (lst)
59
(loop with elt = (car lst)
66
(defmacro with-project (ctx &body body)
67
`(let* ((*skel-project* ,(find-skelfile (or ctx *default-pathname-defaults*) :load t))
68
(*default-pathname-defaults* (sk-src *skel-project*)))