Context
Every bug report needs the same information: OS, detected backend, whether
the cache is in play, Python version, pkgwrap version. Right now reporters
assemble that by hand, and the issue template asks for it piece by piece.
Proposal
$ pkgwrap doctor
pkgwrap 0.2.0 (Python 3.12.3, Linux 6.8.0)
Detected backend: apt (/usr/bin/apt)
Detection source: cache (~/.config/pkgwrap/backend.json, version 2)
Root: no sudo: available
Colour: enabled Unicode: enabled
Supported operations: install, remove, refresh, upgrade, search, list, info, clean
Rules: read-only, no sudo, never runs a package manager command, prints no
personal paths beyond the config directory.
Acceptance criteria
Pointers
src/pkgwrap/detector.py — detection sources
src/pkgwrap/backends/base.py — _unsupported() marks unsupported ops
src/pkgwrap/ui.py — supports_color(), supports_unicode()
Context
Every bug report needs the same information: OS, detected backend, whether
the cache is in play, Python version, pkgwrap version. Right now reporters
assemble that by hand, and the issue template asks for it piece by piece.
Proposal
Rules: read-only, no sudo, never runs a package manager command, prints no
personal paths beyond the config directory.
Acceptance criteria
pkgwrap doctorprints the report abovePKGWRAP_BACKEND, the cache, or a probePointers
src/pkgwrap/detector.py— detection sourcessrc/pkgwrap/backends/base.py—_unsupported()marks unsupported opssrc/pkgwrap/ui.py—supports_color(),supports_unicode()