From 6667a2cb77a205f32dce672a2250ab2ce6bc037b Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Fri, 1 Jul 2022 12:32:32 +0200 Subject: [PATCH] chore: commit save point --- README.md | 5 +++++ application/source/config.go | 2 +- application/source/defaults.go | 6 +++--- application/source/l10n.go | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 91801ce..804cb25 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,11 @@ The date format for the output can be specified with the parameter `--date-forma All confirguration values can also be specified in a configuration file. The configuration file can be specified with the `--config` parameter. +If no path is specified, the configuration file `config.yaml` is first searched for in the working directory. +If this is not found, the file is searched for in the home directory `~/.config/requirements-manager/config.yaml`. + +Finally, we look for the configuration in the `/etc/requirements-manager/config.yaml` directory. + The parameter `path` specifies the path. ### Help diff --git a/application/source/config.go b/application/source/config.go index 26fd3db..ddbce27 100644 --- a/application/source/config.go +++ b/application/source/config.go @@ -50,7 +50,7 @@ type Configuration struct { Template struct { Add string `yaml:"Add"` } `yaml:"Template"` - } `yaml:"Requirement"` + } `yaml:"Document"` } func fileExists(name string) (found bool) { diff --git a/application/source/defaults.go b/application/source/defaults.go index 4ed8228..b959a9b 100644 --- a/application/source/defaults.go +++ b/application/source/defaults.go @@ -40,9 +40,9 @@ block-headings: true {{.Items}} {{ end}}{{ if .HasRequirements }} -## Document +## Documents -{{.Document}} +{{.Documents}} {{ end}} @@ -64,7 +64,7 @@ Type: null Alias: null Keywords: - - Requirement + - Document # First and last name of the authors as a list Author: diff --git a/application/source/l10n.go b/application/source/l10n.go index fe5c3e8..67771ac 100644 --- a/application/source/l10n.go +++ b/application/source/l10n.go @@ -243,7 +243,7 @@ var l10nMap = []l10nKeyTranslation{ }, { "RequirementID", []l10nLocaleTranslation{ - {"de", "Document"}, + {"de", "Documents"}, {"en", "Anforderungen"}, }, }, { -- GitLab