File tree Expand file tree Collapse file tree 6 files changed +57
-0
lines changed
docs/content/Getting-Started/Basic-Usage Expand file tree Collapse file tree 6 files changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ ; ;;; cmds/core/eval.lisp --- Evaluate lisp form with a proper PATH
2
+
3
+ ; ;; Commentary
4
+ ; ;
5
+ ; ; The `eval' command definition.
6
+ ; ;
7
+
8
+ ; ;; Code
9
+
10
+ (defpackage qob-cli/eval
11
+ (:use cl)
12
+ (:export command))
13
+
14
+ (in-package :qob-cli/eval )
15
+
16
+ (defun options ()
17
+ " Options for `eval' command."
18
+ (list ))
19
+
20
+ (defun handler (cmd)
21
+ " Handler for `eval' command."
22
+ (qob-cli :call-script " core/eval" cmd))
23
+
24
+ (defun command ()
25
+ " The `eval' command."
26
+ (clingon :make-command
27
+ :name " eval"
28
+ :description " Evaluate lisp form with a proper PATH"
29
+ :options (options)
30
+ :handler #' handler))
31
+
32
+ ; ;; End of cmds/core/eval.lisp
Original file line number Diff line number Diff line change 59
59
, (qob-cli/clean :command)
60
60
, (qob-cli/create :command)
61
61
, (qob-cli/dists :command)
62
+ , (qob-cli/eval :command)
62
63
, (qob-cli/files :command)
63
64
, (qob-cli/package :command)
64
65
, (qob-cli/info :command)
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ COMMANDS:
44
44
clean Delete various files produced during building
45
45
create Create a new Common Lisp project
46
46
dists List out all installed dists
47
+ eval Evaluate lisp form with a proper PATH
47
48
files Print all system files
48
49
package Build a system artifact
49
50
info Display information about the current system(s)
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ COMMANDS:
41
41
clean Delete various files produced during building
42
42
create Create a new Common Lisp project
43
43
dists List out all installed dists
44
+ eval Evaluate lisp form with a proper PATH
44
45
files Print all system files
45
46
package Build a system artifact
46
47
info Display information about the current system(s)
Original file line number Diff line number Diff line change
1
+ ; ;;; lisp/core/eval.lisp --- Evaluate lisp form with a proper PATH
2
+
3
+ ; ;; Commentary
4
+ ; ;
5
+ ; ; Command use to eval lisp form.
6
+ ; ;
7
+ ; ; $ qob eval [forms..]
8
+ ; ;
9
+
10
+ ; ;; Code
11
+
12
+ (qob-start
13
+ (let* ((name (qob-args 0 )))
14
+ (qob-info name)
15
+ (if name
16
+ (qob-eval name)
17
+ (progn
18
+ (qob-info " (No expression found)" )
19
+ (qob-help " core/eval" )))))
20
+
21
+ ; ;; End of lisp/core/eval.lisp
Original file line number Diff line number Diff line change 19
19
(:file " cmds/core/clean" )
20
20
(:file " cmds/core/create" )
21
21
(:file " cmds/core/dists" )
22
+ (:file " cmds/core/eval" )
22
23
(:file " cmds/core/files" )
23
24
(:file " cmds/core/package" )
24
25
(:file " cmds/core/info" )
You can’t perform that action at this time.
0 commit comments