fix: make part and file section in config optional

This commit is contained in:
TECHNOFAB 2024-12-27 14:31:50 +01:00
parent 98ab491bd0
commit 1a7c22bdbf
No known key found for this signature in database
GPG key ID: D06FBA11BA6FF836
6 changed files with 11 additions and 8 deletions

View file

@ -41,7 +41,7 @@ pub fn attempt_version_bump(args: Cli, config: Config) -> Option<String> {
for label in order.clone() {
if let Some(part) = parsed.get_mut(label) {
let part_cfg = part_configs.get(label);
let part_cfg = part_configs.as_ref().and_then(|c| c.get(label));
if label == args.bump {
match part_cfg