fix for newest carp
This commit is contained in:
@@ -5,7 +5,7 @@ is a simple file path library for Carp.
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
(load "https://veitheller.de/git/carpentry/path@0.0.3")
|
(load "git@git.veitheller.de:carpentry/path.git@0.0.4")
|
||||||
```
|
```
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
@@ -16,7 +16,7 @@ has some functions to work with the `PATH` environment variable.
|
|||||||
|
|
||||||
It assumes either Windows or POSIX-style separators.
|
It assumes either Windows or POSIX-style separators.
|
||||||
|
|
||||||
Look at [the documentation](https://veitheller.de/path) for more information.
|
Look at [the documentation](https://carpentry.dev/path) for more information.
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
|
@@ -25,10 +25,20 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="module">
|
||||||
<h1>
|
<h1>
|
||||||
Path
|
Path
|
||||||
</h1>
|
</h1>
|
||||||
<div class="module-description">
|
<div class="module-description">
|
||||||
|
<p>is a simple file path library for Carp.</p>
|
||||||
|
<h2>Installation</h2>
|
||||||
|
<pre><code class="language-clojure">(load "git@git.veitheller.de:carpentry/path.git@0.0.4")
|
||||||
|
</code></pre>
|
||||||
|
<h3>Usage</h3>
|
||||||
|
<p>The <code>Path</code> module mostly operates on <code>String</code> arguments. It allows you to
|
||||||
|
split, join, and merge paths and extensions in a lot of different ways. It also
|
||||||
|
has some functions to work with the <code>PATH</code> environment variable.</p>
|
||||||
|
<p>It assumes either Windows or POSIX-style separators.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="binder">
|
<div class="binder">
|
||||||
@@ -67,6 +77,7 @@
|
|||||||
(absolute p)
|
(absolute p)
|
||||||
</pre>
|
</pre>
|
||||||
<p class="doc">
|
<p class="doc">
|
||||||
|
<p>makes an absolute path from <code>p</code>.</p>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -537,5 +548,6 @@ the extension.</p>
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
(load \"https://veitheller.de/git/carpentry/path@0.0.3\")
|
(load \"git@git.veitheller.de:carpentry/path.git@0.0.4\")
|
||||||
```
|
```
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
@@ -148,5 +148,5 @@ an extension if there previously was none.")
|
|||||||
(defn split-search-path [p] (String.split-by p &[search-path-separator]))
|
(defn split-search-path [p] (String.split-by p &[search-path-separator]))
|
||||||
(doc get-search-path "gets the `PATH` environment variable and splits it.")
|
(doc get-search-path "gets the `PATH` environment variable and splits it.")
|
||||||
(defn get-search-path []
|
(defn get-search-path []
|
||||||
(Maybe.apply (IO.getenv @"PATH") &(fn [p] (split-search-path &p))))
|
(Maybe.apply (IO.getenv "PATH") &(fn [p] (split-search-path &p))))
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user