Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
|
ab1b868f3f | ||
|
6d03aa4dd9 | ||
|
dc3e85946c | ||
|
e25d93bde9 | ||
|
63125d6ee5 | ||
|
08dc3dbd98 |
|
@ -22,14 +22,14 @@ there did not seem to be any other ways to do it.
|
||||||
If building from Leiningen, add to project dependencies
|
If building from Leiningen, add to project dependencies
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
[org.clojars.simon_brooke/real-name "1.0.1"]
|
[org.clojars.simon_brooke/real-name "1.0.2"]
|
||||||
```
|
```
|
||||||
|
|
||||||
Add the following requirement to your namespace:
|
Add the following requirement to your namespace:
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
(ns your.fine.namespace
|
(ns your.fine.namespace
|
||||||
(:require [cc.journeyman.real-name :refer [get-real-name]]))
|
(:require [cc.journeyman.real-name.core :refer [get-real-name]]))
|
||||||
```
|
```
|
||||||
|
|
||||||
Resolve usernames to real names by invoking `(get-real-name)`, either without
|
Resolve usernames to real names by invoking `(get-real-name)`, either without
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
(defproject org.clojars.simon_brooke/real-name "1.0.1"
|
(defproject org.clojars.simon_brooke/real-name "1.0.2"
|
||||||
:codox {:metadata {:doc "**TODO**: write docs"
|
:codox {:metadata {:doc "**TODO**: write docs"
|
||||||
:doc/format :markdown}
|
:doc/format :markdown}
|
||||||
:output-path "docs"
|
:output-path "docs"
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
"Process this `gecos` field into a map of its sub-fields. See
|
"Process this `gecos` field into a map of its sub-fields. See
|
||||||
https://en.wikipedia.org/wiki/Gecos_field"
|
https://en.wikipedia.org/wiki/Gecos_field"
|
||||||
[gecos]
|
[gecos]
|
||||||
(delimited-record->map gecos #"," [:real-name :address :work-phone :home-phone :other]))
|
(delimited-record->map (str gecos ",?") #"," [:real-name :address :work-phone :home-phone :other]))
|
||||||
|
|
||||||
(defn process-passwd-line
|
(defn process-passwd-line
|
||||||
"Process this `line` from a passwd file"
|
"Process this `line` from a passwd file"
|
||||||
|
|
Loading…
Reference in a new issue