Remove the default org (#270)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-08-17 15:38:41 -04:00
1 parent 01059e6ca8
commit 282177afc2
24 files changed
+190 -431

No files matched your search

-13
View File
@@ -28,7 +28,6 @@ type option struct {
setWithConfigFile bool
setWithConfigText bool
setDisableDatabaseCreation bool
setDefaultOrgId bool
setDefaultAuthMethodId bool
setDefaultLoginName bool
setDefaultPassword bool
@@ -83,18 +82,6 @@ func DisableDatabaseCreation() Option {
}
}
// WithDefaultOrgId sets the org id to the one provided here.
func WithDefaultOrgId(id string) Option {
return func(c *option) error {
if c.setDefaultOrgId {
return fmt.Errorf("WithDefaultOrgId provided more than once.")
}
c.setDefaultOrgId = true
c.tcOptions.DefaultOrgId = id
return nil
}
}
func WithDefaultAuthMethodId(id string) Option {
return func(c *option) error {
if c.setDefaultAuthMethodId {