summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/config.go b/config.go
index 1db87a9..734983d 100644
--- a/config.go
+++ b/config.go
@@ -13,6 +13,7 @@ import (
type Config struct {
Database string //`toml:"database"`
+ Folder string //`toml:"folder"`
Name string //`toml:"name"`
Street string //`toml:"street"`
Zip string //`toml:"zip"`
@@ -85,10 +86,11 @@ func makeNewTOML(gibts bool) {
n := ""
file, err := homedir.Expand("~/.mywork.db")
checkErr(err)
- config = Config{file, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n}
+ config = Config{file, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n}
}
//fmt.Println("Whats Your Namecount\n")
database := getNewInterInput("DB File Path: ", config.Database, nli)
+ folder := getNewInterInput("Template Folder: ", config.Folder, nli)
name := getNewInterInput("Whats your Name?: ", config.Name, nli)
street := getNewInterInput("Street: ", config.Street, nli)
zip := getNewInterInput("Zip Code: ", config.Zip, nli)
@@ -105,7 +107,7 @@ func makeNewTOML(gibts bool) {
iban := getNewInterInput("IBAN: ", config.Iban, nli)
bic := getNewInterInput("BIC: ", config.Bic, nli)
- conf := Config{database, name, street, zip, city, country, telefon, mobile, mail, url, taxid, bankacc, banklz, bankname, iban, bic}
+ conf := Config{database, folder, name, street, zip, city, country, telefon, mobile, mail, url, taxid, bankacc, banklz, bankname, iban, bic}
buf := new(bytes.Buffer)
err = toml.NewEncoder(buf).Encode(conf)