Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/camtisocial/pacfetch
/ functions
Functions
98 in github.com/camtisocial/pacfetch
⨍
Functions
98
◇
Types & classes
21
↓ 14 callers
Function
log_error
Log errors
src/util.rs:121
↓ 9 callers
Method
parsed_stats
(&self)
src/config.rs:307
↓ 9 callers
Function
warn
(msg: &str)
src/log.rs:15
↓ 7 callers
Function
display_stats
(stats: &PacmanStats, config: &Config)
src/ui/mod.rs:312
↓ 7 callers
Function
get_stats
( requested: &[StatIdOrTitle], debug: bool, fresh_sync: bool, config: &crate::config::Config,
src/pacman.rs:1090
↓ 6 callers
Function
parse_color
(s: &str)
src/color.rs:3
↓ 6 callers
Function
strip_ansi
(s: &str)
src/util.rs:49
↓ 5 callers
Function
create_spinner
Create a spinner with the given message
src/util.rs:37
↓ 5 callers
Method
format
(&self)
src/pacman.rs:69
↓ 4 callers
Function
display_stats_with_graphics
(stats: &PacmanStats, config: &Config)
src/ui/mod.rs:444
↓ 4 callers
Method
format_value
(&self, stats: &PacmanStats)
src/stats.rs:126
↓ 4 callers
Function
repeat_pattern
(pattern: &str, width: usize)
src/ui/mod.rs:150
↓ 4 callers
Function
resolve_label
(stat_id: &StatId, config: &Config)
src/ui/mod.rs:183
↓ 4 callers
Function
resolve_title_text
(title_config: &TitleConfig, pacman_version: &Option<String>)
src/ui/mod.rs:161
↓ 4 callers
Method
update_from_line
(&mut self, line: &str)
src/pacman.rs:85
↓ 3 callers
Function
calculate_upgrade_stats
Calculate upgrade stats from a db path
src/pacman.rs:460
↓ 3 callers
Method
config_key
(&self)
src/stats.rs:92
↓ 3 callers
Function
is_root
Check if running as root
src/util.rs:105
↓ 3 callers
Function
pad_label
(label: &str, width: usize)
src/ui/mod.rs:300
↓ 3 callers
Function
should_print
(line: &str, filter: bool)
src/pacman.rs:741
↓ 3 callers
Method
sync_dir
(&self)
src/pacman.rs:179
↓ 2 callers
Method
dbpath
(&self)
src/pacman.rs:175
↓ 2 callers
Function
expand_path
Expand ~ to the user's home directory, respecting SUDO_USER
src/util.rs:91
↓ 2 callers
Function
get_aur_upgradable_count
()
src/pacman.rs:847
↓ 2 callers
Function
max_label_width
(parsed_stats: &[StatIdOrTitle], config: &Config)
src/ui/mod.rs:283
↓ 2 callers
Function
normalize_width
(lines: Vec<String>)
src/ui/ascii.rs:30
↓ 2 callers
Function
print_error_and_help
(msg: &str)
src/main.rs:95
↓ 2 callers
Function
render_palette_lines
( variant: PaletteVariant, palette_config: &PaletteConfig, content_padding: usize, )
src/ui/mod.rs:238
↓ 2 callers
Function
render_title
Render a title line based on its configuration
src/ui/mod.rs:26
↓ 2 callers
Function
run_pacman_sync
()
src/pacman.rs:904
↓ 2 callers
Function
stats_to_json_string
(stats: &pacman::PacmanStats)
src/main.rs:264
↓ 2 callers
Function
title_min_width
Calculate the minimum width needed for a title based on its style
src/ui/mod.rs:11
↓ 1 callers
Function
align_text
(text: &str, width: usize, align: &TitleAlign)
src/ui/mod.rs:132
↓ 1 callers
Function
calculate_upgrade_stats_with_sync
( spinner: Option<&ProgressBar>, debug: bool, ttl_minutes: u32, )
src/pacman.rs:267
↓ 1 callers
Function
check_mirror_sync
(mirror_url: &str, debug: bool)
src/pacman.rs:634
↓ 1 callers
Function
copy_mtime
Copy modification time from src to dest using libc
src/pacman.rs:126
↓ 1 callers
Method
copy_system_dbs
Copy system databases to cache
src/pacman.rs:214
↓ 1 callers
Function
default_ascii
()
src/config.rs:263
↓ 1 callers
Function
default_ascii_color
()
src/config.rs:267
↓ 1 callers
Function
default_disk_path
()
src/config.rs:73
↓ 1 callers
Function
default_glyph
()
src/config.rs:120
↓ 1 callers
Function
default_label_color
()
src/config.rs:150
↓ 1 callers
Function
default_line_char
()
src/config.rs:209
↓ 1 callers
Function
default_palette_spacing
()
src/config.rs:97
↓ 1 callers
Function
default_palette_style
()
src/config.rs:93
↓ 1 callers
Function
default_stats
()
src/config.rs:271
↓ 1 callers
Function
default_title_line_color
()
src/config.rs:205
↓ 1 callers
Function
default_title_text
()
src/config.rs:197
↓ 1 callers
Function
default_title_text_color
()
src/config.rs:201
↓ 1 callers
Function
default_ttl
()
src/config.rs:55
↓ 1 callers
Function
ensure_config_exists
()
src/main.rs:13
↓ 1 callers
Function
expand_tilde
(path: &str)
src/pacman.rs:584
↓ 1 callers
Function
filter_upgrade_line
(line: &str)
src/pacman.rs:716
↓ 1 callers
Function
fix_image_cursor_up
Fix vertical misalignment between image and text overlay.
src/ui/mod.rs:407
↓ 1 callers
Function
format_stat_with_colors
Helper to format a stat with colors
src/ui/mod.rs:617
↓ 1 callers
Function
get_art
(config: &str)
src/ui/ascii.rs:6
↓ 1 callers
Function
get_cache_size
()
src/pacman.rs:567
↓ 1 callers
Function
get_disk_usage
(path: &str)
src/pacman.rs:593
↓ 1 callers
Function
get_installed_count
()
src/pacman.rs:410
↓ 1 callers
Function
get_mirror_url
()
src/pacman.rs:604
↓ 1 callers
Function
get_orphaned_packages
(debug: bool)
src/pacman.rs:537
↓ 1 callers
Function
get_pacman_version
()
src/pacman.rs:618
↓ 1 callers
Function
get_seconds_since_update
()
src/pacman.rs:416
↓ 1 callers
Function
is_bare_invocation
(cli: &Cli)
src/main.rs:91
↓ 1 callers
Method
is_fresh
(&self, ttl_minutes: u32)
src/pacman.rs:183
↓ 1 callers
Method
label
(&self)
src/stats.rs:109
↓ 1 callers
Function
load_from_file
(path: &str)
src/ui/ascii.rs:50
↓ 1 callers
Function
log_path
()
src/util.rs:116
↓ 1 callers
Function
log_path
()
src/log.rs:5
↓ 1 callers
Function
needs_disk_stat
(requested: &[StatIdOrTitle])
src/stats.rs:212
↓ 1 callers
Function
needs_mirror_health
(requested: &[StatIdOrTitle])
src/stats.rs:199
↓ 1 callers
Function
needs_mirror_url
(requested: &[StatIdOrTitle])
src/stats.rs:205
↓ 1 callers
Function
needs_orphan_stats
(requested: &[StatIdOrTitle])
src/stats.rs:193
↓ 1 callers
Function
needs_upgrade_stats
--- stat fetch request helpers ---
src/stats.rs:181
↓ 1 callers
Function
palette_row_width
(style: &str, spacing: usize)
src/ui/mod.rs:229
↓ 1 callers
Method
parse
Parse a stat string, handling both regular stats and title.{name} references
src/stats.rs:57
↓ 1 callers
Function
parse_hex
(s: &str)
src/color.rs:12
↓ 1 callers
Function
parse_named
(s: &str)
src/color.rs:23
↓ 1 callers
Function
paru_upgrade
(debug: bool, config: &crate::config::Config)
src/pacman.rs:1015
↓ 1 callers
Function
run_pacman_pty
(args: &[&str], filter: bool)
src/pacman.rs:749
↓ 1 callers
Function
sync_databases
()
src/pacman.rs:977
↓ 1 callers
Method
touch
Update mtime
src/pacman.rs:246
↓ 1 callers
Function
try_render_with_image
(stats_lines: Vec<String>, config: &Config)
src/ui/mod.rs:363
↓ 1 callers
Function
upgrade_system
( debug: bool, sync_first: bool, config: &crate::config::Config, )
src/pacman.rs:1049
↓ 1 callers
Function
yay_upgrade
(debug: bool, config: &crate::config::Config)
src/pacman.rs:981
Method
cache_dir
Returns ~/.cache/pacfetch/sync/
src/config.rs:336
Method
config_path
Returns ~/.config/pacfetch/pacfetch.toml
src/config.rs:323
Method
default
()
src/config.rs:24
Method
format_state
(state: DbSyncState)
src/pacman.rs:78
Method
load
()
src/config.rs:347
Function
main
()
src/main.rs:102
Method
migrate_config
(path: &PathBuf, contents: &str)
src/config.rs:374
Method
needs_migration
v1.0.0 configs only had [display] with ascii + stats. Any config with v1.1.0 sections is already up to date.
src/config.rs:368
Method
new
()
src/pacman.rs:61
Function
normalize_duration
Convert seconds to a human-readable duration string
src/util.rs:9
Function
render_palette_row
( colors: &[crossterm::style::Color; 8], style: &str, spacing: usize, )
src/ui/mod.rs:211
Function
test_json_contains_installed_and_upgradable
()
src/main.rs:284
Function
test_json_omits_none_values
()
src/main.rs:297