From d9d7285ba87c181165534c8e901c71ae8a8d5d36 Mon Sep 17 00:00:00 2001 From: caumond Date: Sun, 28 Dec 2025 19:30:46 +0100 Subject: [PATCH] init task --- src/auto_build/tasks/docs.clj | 8 +++++++- src/auto_build/tasks/init.clj | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/auto_build/tasks/init.clj diff --git a/src/auto_build/tasks/docs.clj b/src/auto_build/tasks/docs.clj index 0d5f51d..06430ae 100644 --- a/src/auto_build/tasks/docs.clj +++ b/src/auto_build/tasks/docs.clj @@ -132,7 +132,13 @@ :git-branch-switch-back)))) (defn docs - "Generate docs on branch `doc-branch`" + "Generate docs on branch `doc-branch`. + + - `printers` is a map with `title` and `errorln` + - `app-dir` where the application root + - `current-task` + - `doc-branch` branch used to store documentation + - `doc-alias` alias in `deps.edn` for documentation" [{:keys [title errorln] :as printers} app-dir diff --git a/src/auto_build/tasks/init.clj b/src/auto_build/tasks/init.clj new file mode 100644 index 0000000..6ebba4b --- /dev/null +++ b/src/auto_build/tasks/init.clj @@ -0,0 +1,14 @@ +(ns auto-build.tasks.init + "Initialzation of a repo, do preparation tasks: + + - Add wiki repo in `docs/wiki`" + (:require + [auto-build.os.cmd :as build-cmd + :refer [printing]])) + +(defn run + [{:keys [title errorln normalln] + :as _printers} + wiki-repo] + (title "Build wiki repo") + (printing ["git" "clone" wiki-repo "docs/wiki"] "." normalln errorln 10))