Update babashka.fs

This commit is contained in:
Michiel Borkent 2021-07-22 19:48:50 +02:00
parent 2863dce99c
commit 7e0b19ad43
2 changed files with 3 additions and 2 deletions

2
fs

@ -1 +1 @@
Subproject commit 1beb91cd5f352d1e3a914c94e7ec25a2644b07e5
Subproject commit 5339280ee1006de65b6461ed08cfdf2a7b7a4b10

View file

@ -7,7 +7,7 @@
(def current-file (fs/file (fs/absolutize (fs/path "src" *file*))))
(defn update-vars []
(defn update-vars [_]
(let [output (with-out-str (doseq [k (sort (keys (ns-publics 'babashka.fs)))]
(println (str " '" k) (format "(sci/copy-var fs/%s fns)" k))))
this-file (slurp current-file)
@ -79,6 +79,7 @@
'split-paths (sci/copy-var fs/split-paths fns)
'starts-with? (sci/copy-var fs/starts-with? fns)
'str->posix (sci/copy-var fs/str->posix fns)
'strip-ext (sci/copy-var fs/strip-ext fns)
'sym-link? (sci/copy-var fs/sym-link? fns)
'temp-dir (sci/copy-var fs/temp-dir fns)
'walk-file-tree (sci/copy-var fs/walk-file-tree fns)