feat: add username and password login (#418)

* feat: add username and password login

* fix: make sure cookie is not empty

* chore: go mod tidy

* fix: prevent local config from influencing tests

* fix: small cleanup on error handling

* fix: remove unnecessary trim
This commit is contained in:
Jeffrey Smith II
2022-07-28 10:53:19 -04:00
committed by GitHub
parent 182303e31d
commit f34e6a888f
11 changed files with 313 additions and 4 deletions

View File

@ -18,6 +18,7 @@ type Config struct {
Org string `toml:"org" json:"org"`
Active bool `toml:"active,omitempty" json:"active,omitempty"`
PreviousActive bool `toml:"previous,omitempty" json:"previous,omitempty"`
Cookie string `toml:"cookie,omitempty" json:"cookie,omitempty"`
}
// DefaultConfig is default config without token