From dfe8bc6a69eda7ab7477afd7bfff0ac88637c228 Mon Sep 17 00:00:00 2001 From: Michal Date: Fri, 22 Jul 2022 17:41:34 +0100 Subject: [PATCH] Added new config to function --- src/repository/config.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/repository/config.rs b/src/repository/config.rs index 4ac4c3a..a442c01 100644 --- a/src/repository/config.rs +++ b/src/repository/config.rs @@ -7,18 +7,28 @@ use crate::internal::AppExitCode; use crate::{crash, log}; const DEFAULT_CONFIG: &str = r#" +[base] # Either "repository" or "workspace" mode = "" +# Better left as true, but can be set to false if it causes issues with branches +smart_pull = true +[mode.repository] # Only required when in repository mode, decides what to call the repository and relevant files name = "" # Only required when in repository mode, decides whether to PGP sign built packages sign = true +# Only required when in repository mode, decides whether to build packages if pull is successful +build_on_update = false +[mode.workspace] +# There are currently no options for workspace mode + +[repositories] # An array of Git repositories to clone from, formatted url_index::repo_name(!) # e.g. if you had URLs = [ "https://example.com/%repo%.git" ], 1::package would expand to https://example.com/package.git # Repository mode only: Depending on the number of "!"s appended to the name, the priority of the package will be determined. More "!"s = higher priority = built first. -repo = [ +name = [ "", "" ]