48e14c3b55
Change-Id: Ibde769336b955d450105c928e2be707327273879
22 lines
567 B
Go
22 lines
567 B
Go
package bootstrap
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"opendev.org/airship/airshipctl/pkg/bootstrap/isogen"
|
|
"opendev.org/airship/airshipctl/pkg/environment"
|
|
)
|
|
|
|
// NewISOGenCommand creates a new command for ISO image creation
|
|
func NewISOGenCommand(parent *cobra.Command, rootSettings *environment.AirshipCTLSettings) *cobra.Command {
|
|
imageGen := &cobra.Command{
|
|
Use: "isogen",
|
|
Short: "Generate bootstrap ISO image",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return isogen.GenerateBootstrapIso(rootSettings, args)
|
|
},
|
|
}
|
|
|
|
return imageGen
|
|
}
|