Skip to content

Commit

Permalink
Created empty platform.cljs file - see #19
Browse files Browse the repository at this point in the history
  • Loading branch information
lenz committed Nov 16, 2018
1 parent beb4c19 commit 443b37f
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Change Log
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).


## 0.2.2 - 2018-11-16
### Changed
* Internal refactoring - using new namespaces
* Created a dummy platform.cljs file so analysis does not break in CLJS.



## 0.2.0 - 2018-11-15
## Changed
* Fixes #48 / #22 - Orchestra is not a mandatory dependecy anymore.
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject cli-matic "0.2.1"
(defproject cli-matic "0.2.2"
:description "Compact [sub]command line parsing library, for Clojure"
:url "https://github.com/l3nz/cli-matic"
:license {:name "Eclipse Public License, v2"
Expand Down
51 changes: 51 additions & 0 deletions src/cli_matic/platform.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
(ns cli-matic.platform
"
## Platform-specific functions for Node.
At the moment it's all empty.
BTW, in this NS, we avoid using Spec / Orchestra.
")

(defn read-env
"Reads an environment variable.
If undefined, returns nil."
[var]
nil)

(defn exit-script
"Terminates execution with a return value."
[retval]
nil)

(defn add-shutdown-hook
"Add a shutdown hook.
Does not work (?) on CLJS.
"
[fnToCallOnShutdown]

nil)

;
; Conversions
;

(defn parseInt
"Converts a string to an integer. "
[s]
nil)

(defn parseFloat
"Converts a string to a float."
[s]
nil)

(defn asDate
"Converts a string in format yyyy-mm-dd to a
Date object; if conversion
fails, returns nil."
[s]
nil)

0 comments on commit 443b37f

Please sign in to comment.