repo

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package repo implements the `azldev repo` top-level command, which exposes thin wrappers over the system dnf that auto-discover RPM repos under one or more URL prefixes.

Index

Constants

View Source
const DnfBinary = "dnf"

DnfBinary is the underlying system binary the wrapper invokes.

Variables

This section is empty.

Functions

func NewQueryCmd

func NewQueryCmd() *cobra.Command

NewQueryCmd constructs the cobra command for `azldev repo query`.

func OnAppInit

func OnAppInit(app *azldev.App)

OnAppInit registers the `repo` command tree with app.

func RunQuery

func RunQuery(env *azldev.Env, options *QueryOptions, dnfArgs []string) error

RunQuery is the entry point for `azldev repo query`. It resolves the candidate sub-repos and runs `dnf` with them wired up via --repofrompath / --enablerepo plus skip_if_unavailable=1 — letting dnf itself log and tolerate sub-repos that turn out to be missing.

Types

type QueryOptions

type QueryOptions struct {
	RepoPrefixes []string
	Template     string
	Arches       []string
	NoDebuginfo  bool
	NoSRPMs      bool
	Version      string
	UseCase      string
}

QueryOptions are the CLI flags for `azldev repo query`.

Jump to

Keyboard shortcuts

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