Rename eksd-unix package, and INVOKE to MAIN
I feel MAIN is a bit more clear a package-name, and eksd.unis follows convention a little better than eksd-unix, as a package-name.
This commit is contained in:
parent
bea0f74d0a
commit
e6fcb312b6
|
@ -60,8 +60,8 @@ Making a binary requires a Lisp (I recommend SBCL) and Quicklisp
|
|||
Put this repository into your `quicklisp/local-projects/`, then run, in your
|
||||
lisp interpreter:
|
||||
```
|
||||
# (ql:quickload '(eksd eksd-unix))
|
||||
# (save-lisp-and-die "eksd" :toplevel #'eksd-unix:invoke :executable t)
|
||||
# (ql:quickload '(eksd eksd.unix))
|
||||
# (save-lisp-and-die "eksd" :toplevel #'eksd.unix:main :executable t)
|
||||
```
|
||||
|
||||
And bam, you've made a binary. Cool.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
;;;; eksd-unix: UNIX-style cli interface for the xxd-clone eksd.
|
||||
;;;; eksd.unix: UNIX-style cli interface for the xxd-clone eksd.
|
||||
|
||||
;; Copyright © 2019–2024 Jaidyn Ann <jadedctrl@posteo.at>
|
||||
;;
|
||||
|
@ -15,12 +15,12 @@
|
|||
;; You should have received a copy of the GNU General Public License
|
||||
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
(defpackage :eksd-unix
|
||||
(defpackage :eksd.unix
|
||||
(:use :cl :eksd)
|
||||
(:export :invoke
|
||||
(:export :main
|
||||
*text-table*))
|
||||
|
||||
(in-package :eksd-unix)
|
||||
(in-package :eksd.unix)
|
||||
|
||||
|
||||
;;; —————————————————————————————————————
|
||||
|
@ -77,7 +77,7 @@
|
|||
;;; Main - Invocation
|
||||
;;; —————————————————————————————————————
|
||||
;; nil → nil
|
||||
(defun invoke ()
|
||||
(defun main ()
|
||||
"Actual invocation of the program. This is what you should set as :toplevel."
|
||||
(multiple-value-bind (opts free) (opts:get-opts)
|
||||
(when-opt opts :help (help))
|
||||
|
|
Ŝarĝante…
Reference in New Issue