mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
23 lines
405 B
Go
23 lines
405 B
Go
|
package setup
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/caos/zitadel/internal/command/v2"
|
||
|
)
|
||
|
|
||
|
type DefaultInstance struct {
|
||
|
cmd *command.Command
|
||
|
InstanceSetup command.InstanceSetup
|
||
|
}
|
||
|
|
||
|
func (mig *DefaultInstance) Execute(ctx context.Context) error {
|
||
|
_, err := mig.cmd.SetUpInstance(ctx, &mig.InstanceSetup)
|
||
|
|
||
|
return err
|
||
|
}
|
||
|
|
||
|
func (mig *DefaultInstance) String() string {
|
||
|
return "03_default_instance"
|
||
|
}
|