Liking cljdoc? Tell your friends :D

lambdaisland.tools.namespace.move

Refactoring tool to move a Clojure namespace from one name/file to another, and update all references to that namespace in your other Clojure source files.

WARNING: This code is ALPHA and subject to change. It also modifies and deletes your source files! Make sure you have a backup or version control.

Refactoring tool to move a Clojure namespace from one name/file to
another, and update all references to that namespace in your other
Clojure source files.

WARNING: This code is ALPHA and subject to change. It also modifies
and deletes your source files! Make sure you have a backup or
version control.
raw docstring

move-nsclj

(move-ns old-sym new-sym source-path dirs)

ALPHA: subject to change. Moves the .clj source file (found relative to source-path) for the namespace named old-sym to new-sym and replace all occurrences of the old name with the new name in all Clojure source files found in dirs.

This is a purely textual transformation. It does not work on namespaces require'd or use'd from a prefix list.

WARNING: This function modifies and deletes your source files! Make sure you have a backup or version control.

ALPHA: subject to change. Moves the .clj source file (found relative
to source-path) for the namespace named old-sym to new-sym and
replace all occurrences of the old name with the new name in all
Clojure source files found in dirs.

This is a purely textual transformation. It does not work on
namespaces require'd or use'd from a prefix list.

WARNING: This function modifies and deletes your source files! Make
sure you have a backup or version control.
sourceraw docstring

move-ns-fileclj

(move-ns-file old-sym new-sym source-path)

ALPHA: subject to change. Moves the .clj source file (found relative to source-path) for the namespace named old-sym to a file for a namespace named new-sym.

WARNING: This function moves and deletes your source files! Make sure you have a backup or version control.

ALPHA: subject to change. Moves the .clj source file (found relative
to source-path) for the namespace named old-sym to a file for a
namespace named new-sym.

WARNING: This function moves and deletes your source files! Make
sure you have a backup or version control.
sourceraw docstring

replace-ns-symbolclj

(replace-ns-symbol source old-sym new-sym)

ALPHA: subject to change. Given Clojure source as a string, replaces all occurrences of the namespace name old-sym with new-sym and returns modified source as a string.

ALPHA: subject to change. Given Clojure source as a string, replaces
all occurrences of the namespace name old-sym with new-sym and
returns modified source as a string.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close