cmd

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 21 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 InitCmd

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

func NewBuildDisk added in v1.1.0

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

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

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 NewMountCmd added in v1.2.0

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

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