Skip to content

Commit

Permalink
uses default user data dir
Browse files Browse the repository at this point in the history
  • Loading branch information
quantonganh committed Feb 23, 2024
1 parent 3571713 commit 43813ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion cmd/formula.go
Expand Up @@ -66,7 +66,6 @@ func run(daysBefore uint, sendMail bool) error {
if conf.ProfileDir != "" {
opts = append(
opts,
chromedp.UserDataDir(conf.UserDataDir),
chromedp.Flag("profile-directory", conf.ProfileDir),
)
}
Expand Down
19 changes: 9 additions & 10 deletions cmd/root.go
Expand Up @@ -73,16 +73,15 @@ func Execute() {
}

type config struct {
UserDataDir string `yaml:"userDataDir"`
ProfileDir string `yaml:"profileDir"`
URL string `yaml:"url"`
Username string `yaml:"username"`
Password string `yaml:"password"`
Formula formula `yaml:"formula"`
OutDir string `yaml:"outDir"`
ExcelPath string `yaml:"excelPath"`
Wifi Wifi `yaml:"wifi"`
SMTP SMTP `yaml:"smtp"`
ProfileDir string `yaml:"profileDir"`
URL string `yaml:"url"`
Username string `yaml:"username"`
Password string `yaml:"password"`
Formula formula `yaml:"formula"`
OutDir string `yaml:"outDir"`
ExcelPath string `yaml:"excelPath"`
Wifi Wifi `yaml:"wifi"`
SMTP SMTP `yaml:"smtp"`
}

type formula struct {
Expand Down

0 comments on commit 43813ae

Please sign in to comment.