(all-files)
(all-files paths)
(all-files paths opts)
(all-files paths opts project)
returns all the clojure files in a directory
(+ (count (all-files ["test/hara"])) (count (all-files ["test/documentation"]))) => (count (all-files ["test"]))
(-> (all-files ["test"]) (get 'hara.io.project-test)) => #(.endsWith ^String % "/test/hara/io/project_test.clj")
returns all the clojure files in a directory (+ (count (all-files ["test/hara"])) (count (all-files ["test/documentation"]))) => (count (all-files ["test"])) (-> (all-files ["test"]) (get 'hara.io.project-test)) => #(.endsWith ^String % "/test/hara/io/project_test.clj")
(file-lookup)
(file-lookup project)
creates a lookup of namespaces and files in the project
(file-lookup (project))
creates a lookup of namespaces and files in the project (file-lookup (project))
(file-namespace path)
reads the namespace of the given path
(file-namespace "src/hara/io/project.clj") => 'hara.io.project
reads the namespace of the given path (file-namespace "src/hara/io/project.clj") => 'hara.io.project
(project)
(project path)
returns project.clj
as a map
returns `project.clj` as a map
(project-name)
(project-name path)
returns the name, read from project.clj
(project-name) => 'zcaudate/hara
returns the name, read from project.clj (project-name) => 'zcaudate/hara
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close