       (if log#
         (lmain/info (red-text "Chenex Error: No builds detected in project.clj"))))))
 
+
 ;;happy to add more templates here
 (defn- build
   "Writes a basic build template, options are: cljx"

             (spit "builds/chenex-repl.clj" (str e#)))
         (catch Exception _ (lmain/abort (red-text "Chenex Error: enter the name of a chenex feature\n\n"))))))

(defn chenex
  "Run the chenex compiler"
  {:help-arglists '([compile build repl])
   :subtasks [#'compile #'build #'repl]}
  ([project]
     (lmain/abort
      (lhelp/help-for "chenex")))

       "compile" (compile project)
       "build" (build args)
       "repl" (repl args)
       "package" (package args project)
       (lmain/abort (red-text (str "Chenex Error: Subtask " subtask " not found."))
                    (lhelp/subtask-help-for "chenex")))))
