[−][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 |
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_input | This helper function prints a prompt and reads a string from standard input. |
get_installed | This helper function queries |
get_legacy_username | This helper function reads the username from the legacy |
get_release | This helper function queries RPM for the value of |
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. |
str_to_karma | This helper parses a string into an optional karma value instead of an error. |