cmd

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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

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 added in v0.0.14

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 added in v0.0.14

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

func NewConvertDisk added in v0.0.15

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

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 NewDerivativeCmd added in v0.0.14

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

func NewInstallCmd added in v0.0.14

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 added in v0.0.14

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

func NewResetCmd added in v0.0.14

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

func NewRootCmd added in v0.0.14

func NewRootCmd() *cobra.Command

func NewRunStage added in v0.0.14

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

func NewUpgradeCmd added in v0.0.14

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 added in v0.0.14

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