Documentation ¶
Index ¶
- func CheckRoot() error
- func Execute()
- func NewBuildDisk(root *cobra.Command, addCheckRoot bool) *cobra.Command
- func NewBuildISO(root *cobra.Command, addCheckRoot bool) *cobra.Command
- func NewCloudInitCmd(root *cobra.Command) *cobra.Command
- func NewConvertDisk(root *cobra.Command, addCheckRoot bool) *cobra.Command
- func NewDerivativeCmd(root *cobra.Command) *cobra.Command
- func NewInstallCmd(root *cobra.Command, addCheckRoot bool) *cobra.Command
- func NewPullImageCmd(root *cobra.Command, addCheckRoot bool) *cobra.Command
- func NewResetCmd(root *cobra.Command, addCheckRoot bool) *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewRunStage(root *cobra.Command) *cobra.Command
- func NewUpgradeCmd(root *cobra.Command, addCheckRoot bool) *cobra.Command
- func NewVersionCmd(root *cobra.Command) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRoot ¶ added in v0.0.14
func CheckRoot() error
CheckRoot is a helper to return on PreRunE, so we can add it to commands that require root
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func NewBuildDisk ¶ added in v0.0.15
NewBuildDisk returns a new instance of the build-disk subcommand and appends it to the root command. requireRoot is to initiate it with or without the CheckRoot pre-run check. This method is mostly used for testing purposes.
func NewBuildISO ¶ added in v0.0.14
NewBuildISO returns a new instance of the buid-iso subcommand and appends it to the root command. requireRoot is to initiate it with or without the CheckRoot pre-run check. This method is mostly used for testing purposes.
func NewConvertDisk ¶ added in v0.0.15
NewConvertDisk returns a new instance of the convert-disk subcommand and appends it to the root command. requireRoot is to initiate it with or without the CheckRoot pre-run check. This method is mostly used for testing purposes.
func NewInstallCmd ¶ added in v0.0.14
NewInstallCmd returns a new instance of the install subcommand and appends it to the root command. requireRoot is to initiate it with or without the CheckRoot pre-run check. This method is mostly used for testing purposes.
func NewPullImageCmd ¶ added in v0.0.14
func NewResetCmd ¶ added in v0.0.14
func NewRootCmd ¶ added in v0.0.14
func NewUpgradeCmd ¶ added in v0.0.14
NewUpgradeCmd returns a new instance of the upgrade subcommand and appends it to the root command. requireRoot is to initiate it with or without the CheckRoot pre-run check. This method is mostly used for testing purposes.
Types ¶
This section is empty.