Added new config to function

main
Michal 2 years ago
parent a1695cccdb
commit dfe8bc6a69

@ -7,18 +7,28 @@ use crate::internal::AppExitCode;
use crate::{crash, log}; use crate::{crash, log};
const DEFAULT_CONFIG: &str = r#" const DEFAULT_CONFIG: &str = r#"
[base]
# Either "repository" or "workspace" # Either "repository" or "workspace"
mode = "" 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 # Only required when in repository mode, decides what to call the repository and relevant files
name = "" name = ""
# Only required when in repository mode, decides whether to PGP sign built packages # Only required when in repository mode, decides whether to PGP sign built packages
sign = true 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(!) # 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 # 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. # 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 = [
"", "",
"" ""
] ]

Loading…
Cancel
Save