advanced

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRPMS

func BuildRPMS(env *azldev.Env, options *BuildRPMOptions) (results interface{}, err error)

Builds RPMs from sources, using options.

func Download

func Download(env *azldev.Env, options *DownloadOptions) error

Performs the file download requested by options.

func NewBuildRPMCmd

func NewBuildRPMCmd() *cobra.Command

Constructs a cobra.Command for the "mock build-rpms" subcommand.

func NewMCPCmd

func NewMCPCmd() *cobra.Command

Constructs a cobra.Command for the 'mcp' command.

func NewMockCmd

func NewMockCmd() *cobra.Command

Constructs a cobra.Command for the "mock" subcommand hierarchy.

func NewShellCmd

func NewShellCmd() *cobra.Command

Constructs a cobra.Command for the 'mock shell' command.

func NewWgetCmd

func NewWgetCmd() *cobra.Command

Constructs a cobra.Command for the 'wget' command.

func OnAppInit

func OnAppInit(app *azldev.App)

Called once when the app is initialized; registers any commands or callbacks with the app.

func RunShell

func RunShell(env *azldev.Env, options *ShellOptions, extraArgs []string) error

Executes an interactive shell within a mock root. Uses the provided ShellOptions to configure the shell.

Types

type BuildRPMOptions

type BuildRPMOptions struct {
	// Common mock options.
	MockCmdOptions

	// Path to the SRPM to build.
	SRPMPath string
	// Path to the output directory for final RPM files.
	OutputDirPath string
	// Whether to skip the %check section of the RPM spec.
	NoCheck bool
}

Options controlling how to build an RPM from a source RPM.

type DownloadOptions

type DownloadOptions struct {
	// contains filtered or unexported fields
}

Options controlling how a file is downloaded from an internet source.

type MockCmdOptions

type MockCmdOptions struct {
	// Path to the .cfg file to use with mock.
	MockConfigPath string
}

Options controlling how to run mock commands.

type ShellOptions

type ShellOptions struct {
	// Common mock options.
	MockCmdOptions

	// Whether or not to enable external network access from within the mock root the shell is executed in.
	EnableNetwork bool

	// Packages to add to the mock root before starting the shell.
	PackagesToAdd []string
}

Options controlling how to run a shell command in a mock environment.

Jump to

Keyboard shortcuts

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