[][src]Crate fedora_update_feedback

This crate contains helper functionality that's used by the fedora-update-feedback binary. It's contents are probably not useful for external use. But if something turns out to be generally useful, it can be upstreamed into either the fedora or bodhi crates.

Structs

FASConfig

This config file section contains information about the current user's FAS account.

FedoraConfig

This struct represents the contents of a ~/.config/fedora.toml file.

NVR

This struct encapsulates a parsed NVR string.

Enums

Feedback

This enum contains all feedback information for an update that's been parsed from CLI input.

Functions

ask_feedback

This helper function prompts for all feedback values for a given update.

get_config

This helper function reads and parses the configuration file.

get_ignored

Helper function to get list of ignored updates from the cache file.

get_input

This helper function prints a prompt and reads a string from standard input.

get_installed

This helper function queries dnf for the source package names of all currently installed packages.

get_legacy_username

This helper function reads the username from the legacy ~/.fedora.upn file.

get_release

This helper function queries RPM for the value of %{fedora} on the current system.

parse_filename

This helper function parses a NEVRA.rpm string into its components.

parse_nevra

This helper function parses a NEVRA string into its components.

parse_nvr

This helper function parses an NVR string into its components.

print_update

This helper function pretty-prints an update.

progress_bar

This function draws a pretty progress bar with this format:

query_pending

This helper function queries updates in "pending" state for a specific release, and prints a nice progress bar to indicate query progress.

query_testing

This helper function queries updates in "testing" state for a specific release, and prints a nice progress bar to indicate query progress.

query_unpushed

This helper function queries updates in "unpushed" state for a specific release, and prints a nice progress bar to indicate query progress.

set_ignored

Helper function to write the list of ignored updates to the cache file.

str_to_karma

This helper parses a string into an optional karma value instead of an error.