From 6bad560324347ef8ee494078fb256b5221fa9450 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 5 May 2018 15:07:55 +0200 Subject: [PATCH] wip --- internal/ui/config/config.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/ui/config/config.go b/internal/ui/config/config.go index fd3949777..70902b3f0 100644 --- a/internal/ui/config/config.go +++ b/internal/ui/config/config.go @@ -15,12 +15,12 @@ import ( // Config contains configuration items read from a file. type Config struct { - Repo string `config:"repo" flag:"repo" env:"RESTIC_REPOSITORY"` - Password string `config:"password" env:"RESTIC_PASSWORD"` - PasswordFile string `config:"password_file" flag:"password-file" env:"RESTIC_PASSWORD_FILE"` + Repo string `hcl:"repo" flag:"repo" env:"RESTIC_REPOSITORY"` + Password string `hcl:"password" env:"RESTIC_PASSWORD"` + PasswordFile string `hcl:"password_file" flag:"password-file" env:"RESTIC_PASSWORD_FILE"` - Backends map[string]Backend `config:"backend"` - Backup Backup `config:"backup"` + Backends map[string]Backend `hcl:"backend"` + Backup Backup `hcl:"backup"` } // Backend is a configured backend to store a repository. @@ -31,8 +31,8 @@ type Backend struct { // Backup sets the options for the "backup" command. type Backup struct { - Target []string `config:"target"` - Excludes []string `config:"exclude" flag:"exclude"` + Target []string `hcl:"target"` + Excludes []string `hcl:"exclude" flag:"exclude"` } // listTags returns the all the top-level tags with the name tagname of obj.