Skip to content

Commit c68b6e3

Browse files
committed
docs: clean all
1 parent cbe1db0 commit c68b6e3

File tree

4 files changed

+44
-4
lines changed

4 files changed

+44
-4
lines changed

cmds/clean/all.lisp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919

2020
(defun handler (cmd)
2121
"Handler for `clean all' command."
22-
(qob-cli:call-script "clean/all" cmd))
22+
(let ((qob-cli:inhibit-ql-download-p t))
23+
(qob-cli:call-script "clean/all" cmd)))
2324

2425
(defun command ()
2526
"The `clean all' command."

docs/content/Getting-Started/Commands-and-options/_index.en.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,25 @@ Alias: `.qob`
231231
$ qob [GLOBAL-OPTIONS] clean workspace
232232
```
233233

234+
## 🔍 qob clean dist
235+
236+
Delete dist subdirectory.
237+
238+
```sh
239+
$ qob [GLOBAL-OPTIONS] clean dist
240+
```
241+
242+
## 🔍 qob clean all
243+
244+
This command is the combination of all other clean commands.
245+
246+
- `clean workspace`
247+
- `clean dist`
248+
249+
```sh
250+
$ qob [GLOBAL-OPTIONS] clean all
251+
```
252+
234253
# 🚩 Utilities
235254

236255
Other helper commands.

docs/content/Getting-Started/Commands-and-options/_index.zh-tw.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,25 @@ $ qob [GLOBAL-OPTIONS] link list
230230
$ qob [GLOBAL-OPTIONS] clean workspace
231231
```
232232
233+
## 🔍 qob clean dist
234+
235+
刪除 dist 子目錄。
236+
237+
```sh
238+
$ qob [GLOBAL-OPTIONS] clean dist
239+
```
240+
241+
## 🔍 qob clean all
242+
243+
此指令是所有其他清除指令的組合。
244+
245+
- `clean workspace`
246+
- `clean dist`
247+
248+
```sh
249+
$ qob [GLOBAL-OPTIONS] clean all
250+
```
251+
233252
# 🚩 實用工具
234253
235254
其他輔助指令。

src/utils.lisp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ Argument CMD is used to extract positional arguments and options."
103103
(setf (uiop:getenv "QOB_TEMP_FILE") (el-lib:el-expand-file-name "tmp" (dot-global)))
104104
(setf (uiop:getenv "QOB_LISP_ROOT") (lisp-root))
105105
(setf (uiop:getenv "QOB_USER_INIT") (user-init cmd))
106-
(if (quicklisp-installed-p cmd)
107-
(setf (uiop:getenv "QOB_QUICKLISP_INSTALLED") "t")
108-
(quicklisp-download cmd)))
106+
(unless inhibit-ql-download-p
107+
(if (quicklisp-installed-p cmd)
108+
(setf (uiop:getenv "QOB_QUICKLISP_INSTALLED") "t")
109+
(quicklisp-download cmd))))
109110

110111
(defun program-name ()
111112
"Lisp program we target to run."

0 commit comments

Comments
 (0)