Liking cljdoc? Tell your friends :D

hara.io.project


*include*clj


all-filesclj

(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"])) => number?

(-> (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"]))
=> number?

(-> (all-files ["test"])
    (get 'hara.io.project-test))
=> #(.endsWith ^String % "/test/hara/io/project_test.clj")
raw docstring

excludeclj

(exclude lookup exclusions)

helper function for excluding certain namespaces

(exclude '{lucid.legacy.analyzer :a lucid.legacy :a hara.lib.aether :b} ["lucid.legacy"]) => '{hara.lib.aether :b}

helper function for excluding certain namespaces

(exclude '{lucid.legacy.analyzer :a
           lucid.legacy :a
           hara.lib.aether :b}
         ["lucid.legacy"])
=> '{hara.lib.aether :b}
raw docstring

file-lookupclj

(file-lookup)
(file-lookup project)

creates a lookup of namespaces and files in the project

(-> (file-lookup (project)) (get 'hara.io.project)) => #(.endsWith ^String % "/src/hara/io/project.clj")

creates a lookup of namespaces and files in the project

(-> (file-lookup (project))
    (get 'hara.io.project))
=> #(.endsWith ^String % "/src/hara/io/project.clj")
raw docstring

file-namespaceclj

(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
raw docstring

file-suffixclj

(file-suffix)
(file-suffix type)

returns the file suffix for a given type

(file-suffix) => ".clj"

(file-suffix :cljs) => ".cljs"

returns the file suffix for a given type

(file-suffix) => ".clj"

(file-suffix :cljs) => ".cljs"
raw docstring

file-typeclj

(file-type path)

returns the type of file according to the suffix

(file-type "project.clj") => :source

(file-type "test/hara/code_test.clj") => :test

returns the type of file according to the suffix

(file-type "project.clj")
=> :source

(file-type "test/hara/code_test.clj")
=> :test
raw docstring

in-contextcljmacro

(in-context [func & args])

creates a local context for executing code functions

(in-context ((fn [current params _ project] [current (:name project)]))) => '[hara.io.project-test hara]

creates a local context for executing code functions

(in-context ((fn [current params _ project]
               [current (:name project)])))
=> '[hara.io.project-test
     hara]
raw docstring

projectclj

(project)
(project path)

returns project options as a map

(project) => (contains {:name symbol? :dependencies vector?})

returns project options as a map

(project)
=> (contains {:name symbol?
              :dependencies vector?})
raw docstring

project-fileclj

(project-file)

returns the current project file

(project-file) => "project.clj"

returns the current project file

(project-file)
=> "project.clj"
raw docstring

project-fnclj

(project-fn path time)

project-lookupclj


project-nameclj

(project-name)
(project-name path)

returns the name, read from the project map

(project-name) => 'hara

returns the name, read from the project map

(project-name)
=> 'hara
raw docstring

source-nsclj

(source-ns ns)

returns the source namespace

(source-ns 'a) => 'a (source-ns 'a-test) => 'a

returns the source namespace

(source-ns 'a) => 'a
(source-ns 'a-test) => 'a
raw docstring

sym-nameclj

(sym-name x)

returns the symbol of the namespace

(sym-name ns) => 'hara.io.project-test

(sym-name 'a) => 'a

returns the symbol of the namespace

(sym-name *ns*)
=> 'hara.io.project-test

(sym-name 'a)
=> 'a
raw docstring

test-nsclj

(test-ns ns)

returns the test namespace

(test-ns 'a) => 'a-test (test-ns 'a-test) => 'a-test

returns the test namespace

(test-ns 'a) => 'a-test
(test-ns 'a-test) => 'a-test
raw docstring

test-suffixclj

(test-suffix)
(test-suffix s)

returns the test suffix

(test-suffix) => "-test"

returns the test suffix

(test-suffix) => "-test"
raw docstring

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

× close