Skip to content

Commit

Permalink
Added config parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Optimierungswerfer committed Aug 29, 2023
1 parent d4d8d57 commit 765ca72
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import (
)

type Config struct {
Username string `env:"MARK_USERNAME" toml:"username"`
Password string `env:"MARK_PASSWORD" toml:"password"`
BaseURL string `env:"MARK_BASE_URL" toml:"base_url"`
H1Title bool `env:"MARK_H1_TITLE" toml:"h1_title"`
H1Drop bool `env:"MARK_H1_DROP" toml:"h1_drop"`
Username string `env:"MARK_USERNAME" toml:"username"`
Password string `env:"MARK_PASSWORD" toml:"password"`
BaseURL string `env:"MARK_BASE_URL" toml:"base_url"`
H1Title bool `env:"MARK_H1_TITLE" toml:"h1_title"`
H1Drop bool `env:"MARK_H1_DROP" toml:"h1_drop"`
AttachmentBasename bool `env:"MARK_SHORTEN_FILENAMES" toml: "shorten_filenames"`
}

func LoadConfig(path string) (*Config, error) {
Expand Down

0 comments on commit 765ca72

Please sign in to comment.