How krazi49/poli-cli works
poli is a Python command-line wrapper that gives pacman an apt-like command vocabulary and adds AUR support. The main workflow routes a user command through the CLI to package operations, which query pacman or resolve and build AUR packages; progress output is handled by the display layer. Separate command branches provide search and package information, dependency trees, ownership lookup, integrity checks, system statistics, and operation history. The graph follows the sampled CLI, package, and reporting code; other README-listed capabilities are included where documented, with evidence limits reflected in omitted links.
Main entry points: cli.py CLI dispatch · pacman.py Package operations · aur.py AUR queries · tree.py Dependency tree
Components 15
Command interface
- CLI dispatch
poli/cli.py
Package operations
- Package operations
poli/pacman.py - AUR queries
poli/aur.py - AUR builder
poli/pacman.py - Pacman runner
poli/pacman.py
System insights
- Stats and audit
poli/stats.py - Operation history
poli/stats.py - Dependency tree
poli/tree.py - File ownership
poli/cli.py
Shared support
- Terminal display
poli/display.py - User config
poli/config.py
Other components
- User
- pacman
- AUR RPC
- pacman log
Connections 22
- User → CLI dispatch: runs command
README.md - CLI dispatch → Package operations: dispatches operations
poli/cli.py - CLI dispatch → AUR queries: searches and looks up
poli/cli.py - CLI dispatch → Stats and audit: runs reports
poli/cli.py - CLI dispatch → Operation history: requests history
poli/cli.py - CLI dispatch → Dependency tree: requests tree
poli/cli.py - CLI dispatch → pacman: checks file owner
poli/cli.py - Package operations → pacman: queries and changes packages
poli/pacman.py - Package operations → AUR queries: resolves dependencies
poli/pacman.py - Package operations → AUR builder: builds AUR packages
poli/pacman.py - Package operations → Pacman runner: runs package commands
poli/pacman.py - Pacman runner → pacman: executes commands
poli/pacman.py - Pacman runner → Terminal display: updates progress
poli/pacman.py - AUR builder → AUR RPC: clones package source
poli/pacman.py - AUR queries → AUR RPC: queries package data
poli/aur.py - AUR queries → pacman: checks repository packages
poli/aur.py - AUR queries → Terminal display: reports errors
poli/aur.py - Package operations → User config: loads settings
poli/pacman.py - Stats and audit → pacman: queries package state
poli/stats.py - Operation history → pacman log: reads operations
poli/stats.py - Dependency tree → pacman: reads dependencies
poli/tree.py - Dependency tree → Terminal display: prints tree
poli/tree.py