Skip to content

Commit

Permalink
Updated version functions to be public.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Mar 13, 2024
1 parent 24b260b commit 9861700
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/xrepl.lfe
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
(handle_info 2)
(terminate 2)
(code_change 3))
;; server API
;; API
(export
(start 0)
(pid 0)
(echo 1)))
(echo 1))
;; Utility
(export
(version 0) (versions 0)))

;;; ----------------
;;; config functions
Expand Down Expand Up @@ -97,6 +100,12 @@

;;; Public utility functions

(defun version () (xrepl-vsn:get))

(defun versions () (xrepl-vsn:all))

;;; Private functions

(defun banner ()
(let* ((file (filename:join (list (code:priv_dir 'xrepl)
"banners"
Expand All @@ -117,9 +126,5 @@
"gry" "\e[37m"
"end" "\e[0m"))))

(defun version () (xrepl-vsn:get))

(defun versions () (xrepl-vsn:all))

(defun write (string)
(io:put_chars (erlang:whereis 'user) string))
(io:put_chars (erlang:whereis 'user) string))

0 comments on commit 9861700

Please sign in to comment.