~lucasemmoreira/hitter

88c08d612801a918c4aac8c055bcf47676e72d26 — Lucas Moreira 2 years ago 16eed6e
add: build executable
2 files changed, 9 insertions(+), 4 deletions(-)

M project.janet
M src/main.janet
M project.janet => project.janet +5 -0
@@ 11,3 11,8 @@
  # source files and directories that will be installed.
  # Often will just be a single file or single directory.
  :source ["src/main.janet"])

(declare-executable
 :name "hitter"
 :entry "./src/main.janet"
 :cflags ["-lncurses"])

M src/main.janet => src/main.janet +4 -4
@@ 2,7 2,7 @@
(import ./config :as config)
(import ./hit :as hit)

(let [[names urls] (config/read-config "../test/urls")
      status (hit/status-urls urls)]
  (printf "%P" status)
  (ui/run-ui [names status]))
(defn main [& args]
  (let [[names urls] (config/read-config "./urls")
	status (hit/status-urls urls)]
    (ui/run-ui [names status])))