File tree Expand file tree Collapse file tree 13 files changed +129
-14
lines changed Expand file tree Collapse file tree 13 files changed +129
-14
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,15 @@ OPTIONS:
28
28
-v, --verbose <INT> set verbosity from 0 to 5 [default: 3]
29
29
30
30
COMMANDS:
31
- build Build the executable
32
- dists List out all installed dists
33
- install Install packages
34
- install-deps Automatically install system dependencies
35
- uninstall Uninstall packages
36
- list List the registered system
31
+ build Build the executable
32
+ dists List out all installed dists
33
+ info Display information about the current system(s)
34
+ install Install packages
35
+ install-deps Automatically install system dependencies
36
+ install-dists Install dists
37
+ list List the registered system
38
+ status Display the state of the workspac
39
+ uninstall Uninstall packages
37
40
38
41
AUTHORS:
39
42
Jen-Chieh Shen <jcs090218@gmail.com>
Original file line number Diff line number Diff line change 1
- ; ;;; cmds/core/dists.lisp --- Build executable
1
+ ; ;;; cmds/core/dists.lisp --- Print all dists info
2
2
3
3
; ;; Commentary
4
4
; ;
Original file line number Diff line number Diff line change 1
- ; ;;; cmds/core/info.lisp --- Build executable
1
+ ; ;;; cmds/core/info.lisp --- Print the system info
2
2
3
3
; ;; Commentary
4
4
; ;
Original file line number Diff line number Diff line change 1
- ; ;;; cmds/core/install-deps.lisp --- Build executable
1
+ ; ;;; cmds/core/install-deps.lisp --- Install dependencies
2
2
3
3
; ;; Commentary
4
4
; ;
Original file line number Diff line number Diff line change
1
+ ; ;;; cmds/core/install-dists.lisp --- Build executable
2
+
3
+ ; ;; Commentary
4
+ ; ;
5
+ ; ; The `install-dists' command definition.
6
+ ; ;
7
+
8
+ ; ;; Code
9
+
10
+ (defpackage qob-cli/install-dists
11
+ (:use cl)
12
+ (:export command))
13
+
14
+ (in-package :qob-cli/install-dists )
15
+
16
+ (defun options ()
17
+ " Options for `install-dists' command."
18
+ (list
19
+ ))
20
+
21
+ (defun handler (cmd)
22
+ " Handler for `install-dists' command."
23
+ (qob-cli :call-script " core/install-dists" cmd))
24
+
25
+ (defun command ()
26
+ " The `install-dists' command."
27
+ (clingon :make-command
28
+ :name " install-dists"
29
+ :description " Install dists"
30
+ :usage " [names..]"
31
+ :options (options)
32
+ :handler #' handler))
33
+
34
+ ; ;; End of cmds/core/install-dists.lisp
Original file line number Diff line number Diff line change
1
+ ; ;;; cmds/core/status.lisp --- Print the workspace status
2
+
3
+ ; ;; Commentary
4
+ ; ;
5
+ ; ; The `status' command definition.
6
+ ; ;
7
+
8
+ ; ;; Code
9
+
10
+ (defpackage qob-cli/status
11
+ (:use cl)
12
+ (:export command))
13
+
14
+ (in-package :qob-cli/status )
15
+
16
+ (defun options ()
17
+ " Options for `status' command."
18
+ (list ))
19
+
20
+ (defun handler (cmd)
21
+ " Handler for `status' command."
22
+ (qob-cli :call-script " core/status" cmd))
23
+
24
+ (defun command ()
25
+ " The `status' command."
26
+ (clingon :make-command
27
+ :name " status"
28
+ :description " Display the state of the workspac"
29
+ :options (options)
30
+ :handler #' handler))
31
+
32
+ ; ;; End of cmds/core/status.lisp
Original file line number Diff line number Diff line change 1
- ; ;;; cmds/core/uninstall.lisp --- Build executable
1
+ ; ;;; cmds/core/uninstall.lisp --- Uninstall dependencies
2
2
3
3
; ;; Commentary
4
4
; ;
Original file line number Diff line number Diff line change 60
60
, (qob-cli/info :command)
61
61
, (qob-cli/install :command)
62
62
, (qob-cli/install-deps :command)
63
- , (qob-cli/uninstall :command)
64
- , (qob-cli/list :command))))
63
+ , (qob-cli/install-dists :command)
64
+ , (qob-cli/list :command)
65
+ , (qob-cli/status :command)
66
+ , (qob-cli/uninstall :command))))
65
67
66
68
; ;; End of cmds/qob.lisp
Original file line number Diff line number Diff line change 13
13
14
14
(defun qob-info--print-system (name system)
15
15
" Print the SYSTEM info."
16
+ (qob-println " " )
16
17
(let ((author (asdf :system-author system))
17
18
(maintainer (asdf :system-maintainer system))
18
19
(version (asdf :component-version system))
21
22
(license (asdf :system-license system))
22
23
(depends-on (asdf :system-depends-on system)))
23
24
(qob-println " ~A (~A ) | deps: ~A "
24
- (qob-ansi-green name)
25
+ (qob-ansi-green ( string-downcase name) )
25
26
(qob-ansi-yellow version)
26
27
(qob-ansi-cyan (length depends-on)))
27
28
(when description
Original file line number Diff line number Diff line change
1
+ ; ;;; lisp/core/install-dists.lisp --- Install dists
2
+
3
+ ; ;; Commentary
4
+ ; ;
5
+ ; ; Command use to install dists,
6
+ ; ;
7
+ ; ; $ qob install-dists [names..]
8
+ ; ;
9
+
10
+ ; ;; Code
11
+
12
+ (qob-init-ql)
13
+
14
+ (let ((names qob-args))
15
+ (cond ((zerop (length names))
16
+ (qob-help " core/install-dists" ))
17
+ (t
18
+ (dolist (name names)
19
+ (ql-dist :install-dist name :prompt nil )))))
20
+
21
+ ; ;; End of lisp/core/install-dists.lisp
Original file line number Diff line number Diff line change
1
+ ; ;;; lisp/core/status.lisp --- Print the current workspace status
2
+
3
+ ; ;; Commentary
4
+ ; ;
5
+ ; ; Command use to print the workspace statu,
6
+ ; ;
7
+ ; ; $ qob status
8
+ ; ;
9
+
10
+ ; ;; Code
11
+
12
+ (qob-init-asds)
13
+
14
+ ; ; TODO: ..
15
+
16
+ ; ;; End of lisp/core/status.lisp
Original file line number Diff line number Diff line change
1
+
2
+ 💡 You need to specify the systems you want to print the info:
3
+
4
+ $ qob info <system-1> <system-2> ...
Original file line number Diff line number Diff line change 16
16
(:file " cmds/core/info" )
17
17
(:file " cmds/core/install" )
18
18
(:file " cmds/core/install-deps" )
19
- (:file " cmds/core/uninstall " )
19
+ (:file " cmds/core/install-dists " )
20
20
(:file " cmds/core/list" )
21
+ (:file " cmds/core/status" )
22
+ (:file " cmds/core/uninstall" )
21
23
(:file " cmds/qob" )
22
24
; ; Program
23
25
(:file " src/main" ))
You can’t perform that action at this time.
0 commit comments