cmd

package
v0.0.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: GPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

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 FailOnNonEmptyStream

func FailOnNonEmptyStream(t *testing.T, buffer *bytes.Buffer)

func FindItemNames

func FindItemNames(cmd *cobra.Command, args []string, what string) error

FindItemNames accesses the given flags and attempts to perform a search for the given item type

func NewAclSetupCmd

func NewAclSetupCmd() *cobra.Command

NewAclSetupCmd builds a new command that represent the aclsetup action.

func NewBuildisoCmd

func NewBuildisoCmd() *cobra.Command

NewBuildisoCmd builds a new command that represents the buildiso action

func NewDistroAddCmd

func NewDistroAddCmd() (*cobra.Command, error)

func NewDistroCmd

func NewDistroCmd() (*cobra.Command, error)

NewDistroCmd builds a new command that represents the distro action

func NewDistroCopyCmd

func NewDistroCopyCmd() (*cobra.Command, error)

func NewDistroEditCmd

func NewDistroEditCmd() (*cobra.Command, error)

func NewDistroExportCmd

func NewDistroExportCmd() *cobra.Command

func NewDistroFindCmd

func NewDistroFindCmd() (*cobra.Command, error)

func NewDistroListCmd

func NewDistroListCmd() (*cobra.Command, error)

func NewDistroRemoveCmd

func NewDistroRemoveCmd() (*cobra.Command, error)

func NewDistroRenameCmd

func NewDistroRenameCmd() (*cobra.Command, error)

func NewDistroReportCmd

func NewDistroReportCmd() (*cobra.Command, error)

func NewEventCmd

func NewEventCmd() *cobra.Command

func NewEventListCmd

func NewEventListCmd() *cobra.Command

func NewEventLogCmd

func NewEventLogCmd() *cobra.Command

func NewEventStatusCmd

func NewEventStatusCmd() *cobra.Command

func NewFileAddCmd

func NewFileAddCmd() *cobra.Command

func NewFileCmd

func NewFileCmd() (*cobra.Command, error)

NewFileCmd builds a new command that represents the file action

func NewFileCopyCmd

func NewFileCopyCmd() *cobra.Command

func NewFileEditCmd

func NewFileEditCmd() *cobra.Command

func NewFileExportCmd

func NewFileExportCmd() *cobra.Command

func NewFileFindCmd

func NewFileFindCmd() *cobra.Command

func NewFileListCmd

func NewFileListCmd() *cobra.Command

func NewFileRemoveCmd

func NewFileRemoveCmd() *cobra.Command

func NewFileRenameCmd

func NewFileRenameCmd() *cobra.Command

func NewFileReportCmd

func NewFileReportCmd() *cobra.Command

func NewHardlinkCmd

func NewHardlinkCmd() *cobra.Command

NewHardlinkCmd builds a new commdand that represents the hardlink action

func NewImageAddCmd

func NewImageAddCmd() *cobra.Command

func NewImageCmd

func NewImageCmd() (*cobra.Command, error)

NewImageCmd builds a new command that represents the image action

func NewImageCopyCmd

func NewImageCopyCmd() *cobra.Command

func NewImageEditCmd

func NewImageEditCmd() *cobra.Command

func NewImageExportCmd

func NewImageExportCmd() *cobra.Command

func NewImageFindCmd

func NewImageFindCmd() *cobra.Command

func NewImageListCmd

func NewImageListCmd() *cobra.Command

func NewImageRemoveCmd

func NewImageRemoveCmd() *cobra.Command

func NewImageRenameCmd

func NewImageRenameCmd() *cobra.Command

func NewImageReportCmd

func NewImageReportCmd() *cobra.Command

func NewImportCmd

func NewImportCmd() *cobra.Command

NewImportCmd builds a new command that represents the import action

func NewInterfaceAddCommand

func NewInterfaceAddCommand() *cobra.Command

func NewInterfaceCommand

func NewInterfaceCommand() (*cobra.Command, error)

func NewInterfaceCopyCommand

func NewInterfaceCopyCommand() *cobra.Command

func NewInterfaceEditCommand

func NewInterfaceEditCommand() *cobra.Command

func NewInterfaceExportCmd

func NewInterfaceExportCmd() *cobra.Command

func NewInterfaceFindCommand

func NewInterfaceFindCommand() *cobra.Command

func NewInterfaceListCommand

func NewInterfaceListCommand() *cobra.Command

func NewInterfaceRemoveCommand

func NewInterfaceRemoveCommand() *cobra.Command

func NewInterfaceRenameCommand

func NewInterfaceRenameCommand() *cobra.Command

func NewInterfaceReportCommand

func NewInterfaceReportCommand() *cobra.Command

func NewListCmd

func NewListCmd() *cobra.Command

NewListCmd represents the list command

func NewMenuAddCmd

func NewMenuAddCmd() (*cobra.Command, error)

func NewMenuCmd

func NewMenuCmd() (*cobra.Command, error)

NewMenuCmd builds a new command that represents the menu action

func NewMenuCopyCmd

func NewMenuCopyCmd() (*cobra.Command, error)

func NewMenuEditCmd

func NewMenuEditCmd() *cobra.Command

func NewMenuExportCmd

func NewMenuExportCmd() *cobra.Command

func NewMenuFindCmd

func NewMenuFindCmd() *cobra.Command

func NewMenuListCmd

func NewMenuListCmd() *cobra.Command

func NewMenuRemoveCmd

func NewMenuRemoveCmd() *cobra.Command

func NewMenuRenameCmd

func NewMenuRenameCmd() (*cobra.Command, error)

func NewMenuReportCmd

func NewMenuReportCmd() *cobra.Command

func NewMgmtClassAddCmd

func NewMgmtClassAddCmd() *cobra.Command

func NewMgmtClassCmd

func NewMgmtClassCmd() (*cobra.Command, error)

NewMgmtClassCmd builds a new command that represents the mgmtclass action

func NewMgmtClassCopyCmd

func NewMgmtClassCopyCmd() *cobra.Command

func NewMgmtClassEditCmd

func NewMgmtClassEditCmd() *cobra.Command

func NewMgmtClassExportCmd

func NewMgmtClassExportCmd() *cobra.Command

func NewMgmtClassFindCmd

func NewMgmtClassFindCmd() *cobra.Command

func NewMgmtClassListCmd

func NewMgmtClassListCmd() *cobra.Command

func NewMgmtClassRemoveCmd

func NewMgmtClassRemoveCmd() *cobra.Command

func NewMgmtClassRenameCmd

func NewMgmtClassRenameCmd() *cobra.Command

func NewMgmtClassReportCmd

func NewMgmtClassReportCmd() *cobra.Command

func NewMkLoadersCmd

func NewMkLoadersCmd() *cobra.Command

NewMkLoadersCmd builds a new command that represents the mkloaders action

func NewPackageAddCmd

func NewPackageAddCmd() *cobra.Command

func NewPackageCmd

func NewPackageCmd() (*cobra.Command, error)

NewPackageCmd builds a new command that represents the package action

func NewPackageCopyCmd

func NewPackageCopyCmd() *cobra.Command

func NewPackageEditCmd

func NewPackageEditCmd() *cobra.Command

func NewPackageExportCmd

func NewPackageExportCmd() *cobra.Command

func NewPackageFindCmd

func NewPackageFindCmd() *cobra.Command

func NewPackageListCmd

func NewPackageListCmd() *cobra.Command

func NewPackageRemoveCmd

func NewPackageRemoveCmd() *cobra.Command

func NewPackageRenameCmd

func NewPackageRenameCmd() *cobra.Command

func NewPackageReportCmd

func NewPackageReportCmd() *cobra.Command

func NewProfileAddCmd

func NewProfileAddCmd() *cobra.Command

func NewProfileCmd

func NewProfileCmd() (*cobra.Command, error)

NewProfileCmd builds a new command that represents the profile action

func NewProfileCopyCmd

func NewProfileCopyCmd() *cobra.Command

func NewProfileDumpVars

func NewProfileDumpVars() *cobra.Command

func NewProfileEditCmd

func NewProfileEditCmd() *cobra.Command

func NewProfileExportCmd

func NewProfileExportCmd() *cobra.Command

func NewProfileFindCmd

func NewProfileFindCmd() *cobra.Command

func NewProfileGetAutoinstallCmd

func NewProfileGetAutoinstallCmd() *cobra.Command

func NewProfileListCmd

func NewProfileListCmd() *cobra.Command

func NewProfileRemoveCmd

func NewProfileRemoveCmd() *cobra.Command

func NewProfileRenameCmd

func NewProfileRenameCmd() *cobra.Command

func NewProfileReportCmd

func NewProfileReportCmd() *cobra.Command

func NewReplicateCmd

func NewReplicateCmd() *cobra.Command

NewReplicateCmd builds a new command that represents the replicate action

func NewRepoAddCmd

func NewRepoAddCmd() *cobra.Command

func NewRepoAutoAddCmd

func NewRepoAutoAddCmd() *cobra.Command

func NewRepoCmd

func NewRepoCmd() (*cobra.Command, error)

NewRepoCmd builds a new command that represents the repo action

func NewRepoCopyCmd

func NewRepoCopyCmd() *cobra.Command

func NewRepoEditCmd

func NewRepoEditCmd() *cobra.Command

func NewRepoExportCmd

func NewRepoExportCmd() *cobra.Command

func NewRepoFindCmd

func NewRepoFindCmd() *cobra.Command

func NewRepoListCmd

func NewRepoListCmd() *cobra.Command

func NewRepoRemoveCmd

func NewRepoRemoveCmd() *cobra.Command

func NewRepoRenameCmd

func NewRepoRenameCmd() *cobra.Command

func NewRepoReportCmd

func NewRepoReportCmd() *cobra.Command

func NewRepoSyncCmd

func NewRepoSyncCmd() *cobra.Command

NewRepoSyncCmd builds a new command that represents the reposync action

func NewReportCmd

func NewReportCmd() *cobra.Command

NewReportCmd builds a new command that represents the report action

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd builds a new command that represents the base action when called without any subcommands

func NewSettingCmd

func NewSettingCmd() *cobra.Command

NewSettingCmd builds a new command that represents the setting action

func NewSettingEditCmd

func NewSettingEditCmd() *cobra.Command

func NewSettingReportCmd

func NewSettingReportCmd() *cobra.Command

func NewSignatureCmd

func NewSignatureCmd() *cobra.Command

NewSignatureCmd builds a new command that represents the signature action

func NewSignatureReloadCmd

func NewSignatureReloadCmd() *cobra.Command

func NewSignatureReportCmd

func NewSignatureReportCmd() *cobra.Command

func NewSignatureUpdateCmd

func NewSignatureUpdateCmd() *cobra.Command

func NewStatusCmd

func NewStatusCmd() *cobra.Command

func NewSyncCmd

func NewSyncCmd() *cobra.Command

NewSyncCmd builds a command that represents the sync action

func NewSystemAddCmd

func NewSystemAddCmd() *cobra.Command

func NewSystemCmd

func NewSystemCmd() (*cobra.Command, error)

NewSystemCmd builds a new command that represents the system action

func NewSystemCopyCmd

func NewSystemCopyCmd() *cobra.Command

func NewSystemDumpVarsCmd

func NewSystemDumpVarsCmd() *cobra.Command

func NewSystemEditCmd

func NewSystemEditCmd() *cobra.Command

func NewSystemExportCmd

func NewSystemExportCmd() *cobra.Command

func NewSystemFindCmd

func NewSystemFindCmd() *cobra.Command

func NewSystemGetAutoinstallCmd

func NewSystemGetAutoinstallCmd() *cobra.Command

func NewSystemListCmd

func NewSystemListCmd() *cobra.Command

func NewSystemPowerOffCmd

func NewSystemPowerOffCmd() *cobra.Command

func NewSystemPowerOnCmd

func NewSystemPowerOnCmd() *cobra.Command

func NewSystemPowerStatusCmd

func NewSystemPowerStatusCmd() *cobra.Command

func NewSystemRebootCmd

func NewSystemRebootCmd() *cobra.Command

func NewSystemRemoveCmd

func NewSystemRemoveCmd() *cobra.Command

func NewSystemRenameCmd

func NewSystemRenameCmd() *cobra.Command

func NewSystemReportCmd

func NewSystemReportCmd() *cobra.Command

func NewValidateAutoinstallsCmd

func NewValidateAutoinstallsCmd() *cobra.Command

NewValidateAutoinstallsCmd builds a command that represents the validateAutoinstalls action

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd builds a new command that represents the version action

func RemoveItemRecursive

func RemoveItemRecursive(cmd *cobra.Command, args []string, what string) error

RemoveItemRecursive accesses the given flags and attempts to remove a given item

Types

type FlagMetadata

type FlagMetadata[T any] struct {
	Name          string
	DefaultValue  T
	Usage         string
	IsInheritable bool
}

Jump to

Keyboard shortcuts

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