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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close