Skip to content

Conversation

athos
Copy link
Owner

@athos athos commented Aug 19, 2021

This PR adds the --init-ns option like the following:

$ ./trench -s prepl://localhost:5555 --init-ns clojure.string
clojure.string=> (upper-case "foo")
"FOO"
clojure.string=>

Note that the prelude message for prepl must be:

(require '<namespace>)
(in-ns '<namespace>)

instead of:

(do (require '<namespace>) (in-ns '<namespace>))

because ClojureScript does not accept the latter as a valid form.

@athos athos merged commit 76fe637 into main Aug 20, 2021
@athos athos deleted the feature/init-ns branch August 20, 2021 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant