summaryrefslogtreecommitdiff
path: root/src/Config.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-04-01 23:33:06 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2025-04-04 21:25:00 +0200
commit1f01dbd2b1d3fb89efdaab56bc52d82a8ed0483e (patch)
treeed2a279157f6af16dbdd3b620e10e6028a320f23 /src/Config.hs
parent7e8ec380763292d8afa4f3d0f03a679ffe384d49 (diff)
Job root either as repo or jobfile
Diffstat (limited to 'src/Config.hs')
-rw-r--r--src/Config.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Config.hs b/src/Config.hs
index 5631179..bc66ea9 100644
--- a/src/Config.hs
+++ b/src/Config.hs
@@ -1,4 +1,5 @@
module Config (
+ JobRoot(..),
Config(..),
findConfig,
parseConfig,
@@ -34,6 +35,11 @@ configFileName :: FilePath
configFileName = "minici.yaml"
+data JobRoot
+ = JobRootRepo Repo
+ | JobRootConfig Config
+
+
data Config = Config
{ configJobs :: [ DeclaredJob ]
, configRepos :: [ DeclaredRepo ]