Add config parser functionality

Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
2022-07-24 21:14:05 +02:00
parent b31b2e199b
commit 8e92bc70a7
9 changed files with 265 additions and 11 deletions

View File

@@ -0,0 +1 @@
# empty file with no directives

View File

@@ -0,0 +1,20 @@
# cloner.cfg
# main config
# created at 2018-03-23 20:24:57
invalid_option1
invalid_option=2
# main url - url of main repo - just to clone
cloner_repo_url=git@git.somerandomserver.test:/path
# project name (names of volumes are derrived from this
cloner_project_name=some-random-project
# cloner interval (in minutes, default=0 - run always)
cloner_interval=666
# do you need submodules support? (1/0)
cloner_submodules=1
# max depth of submodule scan (default = unlimited, uncomment to use)
cloner_submodule_depth=500000

View File

@@ -0,0 +1,18 @@
# cloner.cfg
# main config
# created at 2018-03-23 20:24:57
# main url - url of main repo - just to clone
cloner_repo_url=git@git.somerandomserver.test:/path
# project name (names of volumes are derrived from this
cloner_project_name=some-random-project
# cloner interval (in minutes, default=0 - run always)
cloner_interval=666
# do you need submodules support? (1/0)
cloner_submodules=1
# max depth of submodule scan (default = unlimited, uncomment to use)
cloner_submodule_depth=500000