fix for newest carp

This commit is contained in:
2022-01-27 12:01:03 +01:00
parent 03aab46ab5
commit c734c582d4
3 changed files with 454 additions and 442 deletions

View File

@@ -5,7 +5,7 @@ is a simple file path library for Carp.
## Installation
```clojure
(load "https://veitheller.de/git/carpentry/path@0.0.3")
(load "git@git.veitheller.de:carpentry/path.git@0.0.4")
```
### Usage
@@ -16,7 +16,7 @@ has some functions to work with the `PATH` environment variable.
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/>

View File

@@ -25,10 +25,20 @@
</ul>
</div>
</div>
<div class="module">
<h1>
Path
</h1>
<div class="module-description">
<p>is a simple file path library for Carp.</p>
<h2>Installation</h2>
<pre><code class="language-clojure">(load &quot;git@git.veitheller.de:carpentry/path.git@0.0.4&quot;)
</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 class="binder">
@@ -67,6 +77,7 @@
(absolute p)
</pre>
<p class="doc">
<p>makes an absolute path from <code>p</code>.</p>
</p>
</div>
@@ -537,5 +548,6 @@ the extension.</p>
</p>
</div>
</div>
</div>
</body>
</html>

View File

@@ -3,7 +3,7 @@
## Installation
```clojure
(load \"https://veitheller.de/git/carpentry/path@0.0.3\")
(load \"git@git.veitheller.de:carpentry/path.git@0.0.4\")
```
### Usage
@@ -148,5 +148,5 @@ an extension if there previously was none.")
(defn split-search-path [p] (String.split-by p &[search-path-separator]))
(doc get-search-path "gets the `PATH` environment variable and splits it.")
(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))))
)