(clojure-version)
returns the current clojure version (env/clojure-version) => (contains {:major anything, :minor anything, :incremental anything :qualifier anything})
returns the current clojure version (env/clojure-version) => (contains {:major anything, :minor anything, :incremental anything :qualifier anything})
(init constraints & statements)
only attempts to load the files when the minimum versions have been met
(env/init [[:java :newer {:major 1 :minor 8}] [:clojure :newer {:major 1 :minor 6}]] (:require [hara.time.data.zone java-time-zoneid] [hara.time.data.instant java-time-instant] [hara.time.data.format java-time-format-datetimeformatter]) (:import java.time.Instant))
only attempts to load the files when the minimum versions have been met (env/init [[:java :newer {:major 1 :minor 8}] [:clojure :newer {:major 1 :minor 6}]] (:require [hara.time.data.zone java-time-zoneid] [hara.time.data.instant java-time-instant] [hara.time.data.format java-time-format-datetimeformatter]) (:import java.time.Instant))
(java-version)
returns the current java version (env/java-version) => (contains {:major anything, :minor anything, :incremental anything :qualifier anything})
returns the current java version (env/java-version) => (contains {:major anything, :minor anything, :incremental anything :qualifier anything})
(load f)
returns jvm properties in a nested map for easy access (->> (java.io.StringReader. (str {:version [:property "os.version"]})) (env/load)) => (contains {:version string?})
returns jvm properties in a nested map for easy access (->> (java.io.StringReader. (str {:version [:property "os.version"]})) (env/load)) => (contains {:version string?})
(properties)
returns jvm properties in a nested map for easy access (->> (env/properties) :os) => (contains {:arch anything :name anything :version anything})
returns jvm properties in a nested map for easy access (->> (env/properties) :os) => (contains {:arch anything :name anything :version anything})
(run constraints & body)
only runs the following code is the minimum versions have been met (env/run [[:java :newer {:major 1 :minor 8}] [:clojure :newer {:major 1 :minor 6}]] (Instant/ofEpochMilli 0))
only runs the following code is the minimum versions have been met (env/run [[:java :newer {:major 1 :minor 8}] [:clojure :newer {:major 1 :minor 6}]] (Instant/ofEpochMilli 0))
(satisfied [type compare constraint :as entry])
(satisfied [type compare constraint] current)
checks to see if the current version satisfies the given constraints (env/satisfied [:java :newer {:major 1 :minor 7}] {:major 1 :minor 8}) => true
(env/satisfied [:java :older {:major 1 :minor 7}] {:major 1 :minor 7}) => false
(env/satisfied [:java :not-newer {:major 12 :minor 0}]) => true
checks to see if the current version satisfies the given constraints (env/satisfied [:java :newer {:major 1 :minor 7}] {:major 1 :minor 8}) => true (env/satisfied [:java :older {:major 1 :minor 7}] {:major 1 :minor 7}) => false (env/satisfied [:java :not-newer {:major 12 :minor 0}]) => true
(version)
(version tag)
alternate way of getting clojure and java version (env/version :clojure) => (env/clojure-version)
(env/version :java) => (env/java-version)
alternate way of getting clojure and java version (env/version :clojure) => (env/clojure-version) (env/version :java) => (env/java-version)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close