Files
selenoid-images/cmd/yandex.go
T
2022-05-17 01:56:44 +03:00

29 lines
656 B
Go

package cmd
import (
"github.com/aerokube/images/build"
"github.com/spf13/cobra"
)
var (
yandexCmd = &cobra.Command{
Use: "yandex",
Short: "build Yandex.Browser image",
RunE: func(cmd *cobra.Command, args []string) error {
req := build.Requirements{
BrowserSource: build.BrowserSource(browserSource),
BrowserChannel: browserChannel,
DriverVersion: driverVersion,
NoCache: noCache,
TestsDir: testsDir,
RunTests: test,
IgnoreTests: ignoreTests,
Tags: tags,
PushImage: push,
}
yandexBrowser := &build.YandexBrowser{req}
return yandexBrowser.Build()
},
}
)