-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
;;;; cmds/core/uninstall.lisp --- Build executable | ||
|
||
;;; Commentary | ||
;; | ||
;; The `uninstall' command definition. | ||
;; | ||
|
||
;;; Code | ||
|
||
(defpackage qob-cli/uninstall | ||
(:use cl) | ||
(:export command)) | ||
|
||
(in-package :qob-cli/uninstall) | ||
|
||
(defun options () | ||
"Options for `uninstall' command." | ||
(list )) | ||
|
||
(defun handler (cmd) | ||
"Handler for `uninstall' command." | ||
(qob-cli:call-script "core/uninstall" cmd)) | ||
|
||
(defun command () | ||
"The `uninstall' command." | ||
(clingon:make-command | ||
:name "uninstall" | ||
:description "Uninstall packages" | ||
:usage "[names..]" | ||
:options (options) | ||
:handler #'handler)) | ||
|
||
;;; End of cmds/core/uninstall.lisp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
;;;; lisp/core/uninstall.lisp --- Uninstall systems | ||
|
||
;;; Commentary | ||
;; | ||
;; Command use to uninstall systems, | ||
;; | ||
;; $ qob uninstall [names..] | ||
;; | ||
;; | ||
;; Optional arguments: | ||
;; | ||
;; [names..] name of the system(s) to uninstall | ||
;; | ||
|
||
;;; Code | ||
|
||
(qob-init-ql) | ||
|
||
(qob-load "shared") | ||
|
||
(let ((names qob-args)) | ||
(cond ((zerop (length names)) | ||
(qob-help "core/uninstall")) | ||
(t | ||
;; TODO: .. | ||
;;(qob-install-systems names) | ||
))) | ||
|
||
;;; End of lisp/core/uninstall.lisp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters