Files
2022-05-17 01:56:44 +03:00

29 lines
621 B
Go

package cmd
import (
"github.com/aerokube/images/build"
"github.com/spf13/cobra"
)
var (
operaCmd = &cobra.Command{
Use: "opera",
Short: "build Opera 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,
}
opera := &build.Opera{req}
return opera.Build()
},
}
)