Added instructions
authorSaba Saba <saba@sabadev.xyz>
Thu, 9 Feb 2023 17:26:19 +0000 (12:26 -0500)
committerSaba Saba <saba@sabadev.xyz>
Thu, 9 Feb 2023 17:26:19 +0000 (12:26 -0500)
git-repl.cl

index 57581c2..5b8ee84 100644 (file)
@@ -44,7 +44,7 @@
   "Runs an arbitrary git command. Separate each token as a string, for example: (git \"add\" \"-i\")"
   (run-command (str:join " " (cons "git" arguments))))
 
-(defun-public help ()
+(defun-public commands ()
   "Lists every public command. Use (describe 'command-name) for documentation."
   (do-external-symbols (sym)
     (format t "~a~%" sym)))
 (defun-public delete-merged-branches ()
   "Deletes every local branch covered by \'git branch --merged\'"
   (mapcar #'delete-branch (git "branch" "--merged")))
+
+(defun-public help ()
+  "Prints out usage instructions for this REPL"
+  (write-line "This is a Common Lisp REPL.")
+  (write-line "Execute (commands) for a list of commands.")
+  (write-line "Use (describe 'command-name) for documentation on a given command.")
+  (write-line "Execute (help) to see these instructions again.")
+  nil)
+
+(help)