cmd

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRoot

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 NewBuildISO

func NewBuildISO(root *cobra.Command, addCheckRoot bool) *cobra.Command

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 NewCloudInitCmd

func NewCloudInitCmd(root *cobra.Command) *cobra.Command

func NewInstallCmd

func NewInstallCmd(root *cobra.Command, addCheckRoot bool) *cobra.Command

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

func NewPullImageCmd(root *cobra.Command, addCheckRoot bool) *cobra.Command

func NewResetCmd

func NewResetCmd(root *cobra.Command, addCheckRoot bool) *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

func NewRunStage

func NewRunStage(root *cobra.Command) *cobra.Command

func NewUpgradeCmd

func NewUpgradeCmd(root *cobra.Command, addCheckRoot bool) *cobra.Command

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.

func NewVersionCmd

func NewVersionCmd(root *cobra.Command) *cobra.Command

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL