MCPcopy Create free account

hub / github.com/camtisocial/pacfetch / functions

Functions98 in github.com/camtisocial/pacfetch

↓ 14 callersFunctionlog_error
Log errors
src/util.rs:121
↓ 9 callersMethodparsed_stats
(&self)
src/config.rs:307
↓ 9 callersFunctionwarn
(msg: &str)
src/log.rs:15
↓ 7 callersFunctiondisplay_stats
(stats: &PacmanStats, config: &Config)
src/ui/mod.rs:312
↓ 7 callersFunctionget_stats
( requested: &[StatIdOrTitle], debug: bool, fresh_sync: bool, config: &crate::config::Config,
src/pacman.rs:1090
↓ 6 callersFunctionparse_color
(s: &str)
src/color.rs:3
↓ 6 callersFunctionstrip_ansi
(s: &str)
src/util.rs:49
↓ 5 callersFunctioncreate_spinner
Create a spinner with the given message
src/util.rs:37
↓ 5 callersMethodformat
(&self)
src/pacman.rs:69
↓ 4 callersFunctiondisplay_stats_with_graphics
(stats: &PacmanStats, config: &Config)
src/ui/mod.rs:444
↓ 4 callersMethodformat_value
(&self, stats: &PacmanStats)
src/stats.rs:126
↓ 4 callersFunctionrepeat_pattern
(pattern: &str, width: usize)
src/ui/mod.rs:150
↓ 4 callersFunctionresolve_label
(stat_id: &StatId, config: &Config)
src/ui/mod.rs:183
↓ 4 callersFunctionresolve_title_text
(title_config: &TitleConfig, pacman_version: &Option<String>)
src/ui/mod.rs:161
↓ 4 callersMethodupdate_from_line
(&mut self, line: &str)
src/pacman.rs:85
↓ 3 callersFunctioncalculate_upgrade_stats
Calculate upgrade stats from a db path
src/pacman.rs:460
↓ 3 callersMethodconfig_key
(&self)
src/stats.rs:92
↓ 3 callersFunctionis_root
Check if running as root
src/util.rs:105
↓ 3 callersFunctionpad_label
(label: &str, width: usize)
src/ui/mod.rs:300
↓ 3 callersFunctionshould_print
(line: &str, filter: bool)
src/pacman.rs:741
↓ 3 callersMethodsync_dir
(&self)
src/pacman.rs:179
↓ 2 callersMethoddbpath
(&self)
src/pacman.rs:175
↓ 2 callersFunctionexpand_path
Expand ~ to the user's home directory, respecting SUDO_USER
src/util.rs:91
↓ 2 callersFunctionget_aur_upgradable_count
()
src/pacman.rs:847
↓ 2 callersFunctionmax_label_width
(parsed_stats: &[StatIdOrTitle], config: &Config)
src/ui/mod.rs:283
↓ 2 callersFunctionnormalize_width
(lines: Vec<String>)
src/ui/ascii.rs:30
↓ 2 callersFunctionprint_error_and_help
(msg: &str)
src/main.rs:95
↓ 2 callersFunctionrender_palette_lines
( variant: PaletteVariant, palette_config: &PaletteConfig, content_padding: usize, )
src/ui/mod.rs:238
↓ 2 callersFunctionrender_title
Render a title line based on its configuration
src/ui/mod.rs:26
↓ 2 callersFunctionrun_pacman_sync
()
src/pacman.rs:904
↓ 2 callersFunctionstats_to_json_string
(stats: &pacman::PacmanStats)
src/main.rs:264
↓ 2 callersFunctiontitle_min_width
Calculate the minimum width needed for a title based on its style
src/ui/mod.rs:11
↓ 1 callersFunctionalign_text
(text: &str, width: usize, align: &TitleAlign)
src/ui/mod.rs:132
↓ 1 callersFunctioncalculate_upgrade_stats_with_sync
( spinner: Option<&ProgressBar>, debug: bool, ttl_minutes: u32, )
src/pacman.rs:267
↓ 1 callersFunctioncheck_mirror_sync
(mirror_url: &str, debug: bool)
src/pacman.rs:634
↓ 1 callersFunctioncopy_mtime
Copy modification time from src to dest using libc
src/pacman.rs:126
↓ 1 callersMethodcopy_system_dbs
Copy system databases to cache
src/pacman.rs:214
↓ 1 callersFunctiondefault_ascii
()
src/config.rs:263
↓ 1 callersFunctiondefault_ascii_color
()
src/config.rs:267
↓ 1 callersFunctiondefault_disk_path
()
src/config.rs:73
↓ 1 callersFunctiondefault_glyph
()
src/config.rs:120
↓ 1 callersFunctiondefault_label_color
()
src/config.rs:150
↓ 1 callersFunctiondefault_line_char
()
src/config.rs:209
↓ 1 callersFunctiondefault_palette_spacing
()
src/config.rs:97
↓ 1 callersFunctiondefault_palette_style
()
src/config.rs:93
↓ 1 callersFunctiondefault_stats
()
src/config.rs:271
↓ 1 callersFunctiondefault_title_line_color
()
src/config.rs:205
↓ 1 callersFunctiondefault_title_text
()
src/config.rs:197
↓ 1 callersFunctiondefault_title_text_color
()
src/config.rs:201
↓ 1 callersFunctiondefault_ttl
()
src/config.rs:55
↓ 1 callersFunctionensure_config_exists
()
src/main.rs:13
↓ 1 callersFunctionexpand_tilde
(path: &str)
src/pacman.rs:584
↓ 1 callersFunctionfilter_upgrade_line
(line: &str)
src/pacman.rs:716
↓ 1 callersFunctionfix_image_cursor_up
Fix vertical misalignment between image and text overlay.
src/ui/mod.rs:407
↓ 1 callersFunctionformat_stat_with_colors
Helper to format a stat with colors
src/ui/mod.rs:617
↓ 1 callersFunctionget_art
(config: &str)
src/ui/ascii.rs:6
↓ 1 callersFunctionget_cache_size
()
src/pacman.rs:567
↓ 1 callersFunctionget_disk_usage
(path: &str)
src/pacman.rs:593
↓ 1 callersFunctionget_installed_count
()
src/pacman.rs:410
↓ 1 callersFunctionget_mirror_url
()
src/pacman.rs:604
↓ 1 callersFunctionget_orphaned_packages
(debug: bool)
src/pacman.rs:537
↓ 1 callersFunctionget_pacman_version
()
src/pacman.rs:618
↓ 1 callersFunctionget_seconds_since_update
()
src/pacman.rs:416
↓ 1 callersFunctionis_bare_invocation
(cli: &Cli)
src/main.rs:91
↓ 1 callersMethodis_fresh
(&self, ttl_minutes: u32)
src/pacman.rs:183
↓ 1 callersMethodlabel
(&self)
src/stats.rs:109
↓ 1 callersFunctionload_from_file
(path: &str)
src/ui/ascii.rs:50
↓ 1 callersFunctionlog_path
()
src/util.rs:116
↓ 1 callersFunctionlog_path
()
src/log.rs:5
↓ 1 callersFunctionneeds_disk_stat
(requested: &[StatIdOrTitle])
src/stats.rs:212
↓ 1 callersFunctionneeds_mirror_health
(requested: &[StatIdOrTitle])
src/stats.rs:199
↓ 1 callersFunctionneeds_mirror_url
(requested: &[StatIdOrTitle])
src/stats.rs:205
↓ 1 callersFunctionneeds_orphan_stats
(requested: &[StatIdOrTitle])
src/stats.rs:193
↓ 1 callersFunctionneeds_upgrade_stats
--- stat fetch request helpers ---
src/stats.rs:181
↓ 1 callersFunctionpalette_row_width
(style: &str, spacing: usize)
src/ui/mod.rs:229
↓ 1 callersMethodparse
Parse a stat string, handling both regular stats and title.{name} references
src/stats.rs:57
↓ 1 callersFunctionparse_hex
(s: &str)
src/color.rs:12
↓ 1 callersFunctionparse_named
(s: &str)
src/color.rs:23
↓ 1 callersFunctionparu_upgrade
(debug: bool, config: &crate::config::Config)
src/pacman.rs:1015
↓ 1 callersFunctionrun_pacman_pty
(args: &[&str], filter: bool)
src/pacman.rs:749
↓ 1 callersFunctionsync_databases
()
src/pacman.rs:977
↓ 1 callersMethodtouch
Update mtime
src/pacman.rs:246
↓ 1 callersFunctiontry_render_with_image
(stats_lines: Vec<String>, config: &Config)
src/ui/mod.rs:363
↓ 1 callersFunctionupgrade_system
( debug: bool, sync_first: bool, config: &crate::config::Config, )
src/pacman.rs:1049
↓ 1 callersFunctionyay_upgrade
(debug: bool, config: &crate::config::Config)
src/pacman.rs:981
Methodcache_dir
Returns ~/.cache/pacfetch/sync/
src/config.rs:336
Methodconfig_path
Returns ~/.config/pacfetch/pacfetch.toml
src/config.rs:323
Methoddefault
()
src/config.rs:24
Methodformat_state
(state: DbSyncState)
src/pacman.rs:78
Methodload
()
src/config.rs:347
Functionmain
()
src/main.rs:102
Methodmigrate_config
(path: &PathBuf, contents: &str)
src/config.rs:374
Methodneeds_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
Methodnew
()
src/pacman.rs:61
Functionnormalize_duration
Convert seconds to a human-readable duration string
src/util.rs:9
Functionrender_palette_row
( colors: &[crossterm::style::Color; 8], style: &str, spacing: usize, )
src/ui/mod.rs:211
Functiontest_json_contains_installed_and_upgradable
()
src/main.rs:284
Functiontest_json_omits_none_values
()
src/main.rs:297