Skip to content

Commit

Permalink
enhance repl messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Jan 8, 2024
1 parent 28ade64 commit 4e356c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/renderer/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@
(defn bootstrap-cb
[]
(replumb/run-repl "(in-ns 'user)" identity)
(print "Repl initialized"))
(print "Welcome to your REPL!")
(print "")
(print "You can create or modify shapes using the command line.")
(print "Type (help) to see the list of commands."))

(defn init-api
[]
Expand Down
6 changes: 3 additions & 3 deletions src/user.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
(rf/dispatch [:element/fill color]))

(defn ^:export delete
"Deletes selected elements."
"Deletes the selected elements."
[]
(rf/dispatch [:element/delete]))

Expand Down Expand Up @@ -167,12 +167,12 @@
(rf/dispatch [:element/deselect-all]))

(defn ^:export ->path
"Converts selected elements to paths."
"Converts the selected elements to paths."
[]
(rf/dispatch [:element/->path]))

(defn ^:export stroke->path
"Converts selected elements to paths."
"Converts the selected elements' stroke to paths."
[]
(rf/dispatch [:element/stroke->path]))

Expand Down

0 comments on commit 4e356c1

Please sign in to comment.