Kevin Veen-Birkenbach d50891dfe5 Refactor: Restructure pkgmgr into actions/, core/, and cli/ (full module breakup)
This commit introduces a large-scale structural refactor of the pkgmgr
codebase. All functionality has been moved from the previous flat
top-level layout into three clearly separated namespaces:

  • pkgmgr.actions      – high-level operations invoked by the CLI
  • pkgmgr.core         – pure logic, helpers, repository utilities,
                          versioning, git helpers, config IO, and
                          command resolution
  • pkgmgr.cli          – parser, dispatch, context, and command
                          handlers

Key improvements:
  - Moved all “branch”, “release”, “changelog”, repo-management
    actions, installer pipelines, and proxy execution logic into
    pkgmgr.actions.<domain>.
  - Reworked installer structure under
        pkgmgr.actions.repository.install.installers
    including OS-package installers, Nix, Python, and Makefile.
  - Consolidated all low-level functionality under pkgmgr.core:
        • git helpers → core/git
        • config load/save → core/config
        • repository helpers → core/repository
        • versioning & semver → core/version
        • command helpers (alias, resolve, run, ink) → core/command
  - Replaced pkgmgr.cli_core with pkgmgr.cli and updated all imports.
  - Added minimal __init__.py files for clean package exposure.
  - Updated all E2E, integration, and unit tests with new module paths.
  - Fixed patch targets so mocks point to the new structure.
  - Ensured backward compatibility at the CLI boundary (pkgmgr entry point unchanged).

This refactor produces a cleaner, layered architecture:
  - `core` = logic
  - `actions` = orchestrated behaviour
  - `cli` = user interface

Reference: ChatGPT-assisted refactor discussion
https://chatgpt.com/share/6938221c-e24c-800f-8317-7732cedf39b9
2025-12-09 14:20:19 +01:00
2025-12-08 22:40:50 +01:00
2025-12-09 05:59:58 +01:00
2025-12-07 21:52:04 +01:00
2025-12-09 05:59:58 +01:00
2025-12-09 05:59:58 +01:00
2025-03-04 13:17:09 +01:00
2025-12-09 05:59:58 +01:00
2025-12-09 05:59:58 +01:00
2025-12-09 05:59:58 +01:00
2025-07-11 07:37:21 +02:00

Package Manager🤖📦

GitHub Sponsors Patreon Buy Me a Coffee PayPal GitHub license GitHub repo size

Kevins's Package Manager is a configurable Python tool designed to manage multiple repositories via Bash. It automates common Git operations such as clone, pull, push, status, and more. Additionally, it handles the creation of executable wrappers and alias links for your repositories.

Features 🚀

  • Installation & Setup:
    Create executable wrappers with auto-detected commands (e.g. main.sh or main.py).

  • Git Operations:
    Easily perform git pull, push, status, commit, diff, add, show, and checkout with extra parameters passed through.

  • Configuration Management:
    Manage repository configurations via a default file (config/defaults.yaml) and a user-specific file (config/config.yaml). Initialize, add, delete, or ignore entries using subcommands.

  • Path & Listing:
    Display repository paths or list all configured packages with their details.

  • Custom Aliases:
    Generate and manage custom aliases for easy command invocation.

Installation ⚙️

Clone the repository and ensure your ~/.local/bin is in your system PATH:

git clone https://github.com/kevinveenbirkenbach/package-manager.git
cd package-manager

Install make and pip if not installed yet:

pacman -S make python-pip

Then, run the following command to set up the project:

make setup

The make setup command will:

  • Make main.py executable.
  • Install required packages from requirements.txt.
  • Execute python main.py install to complete the installation.

Docker Quickstart 🐳

Alternatively to installing locally, you can use Docker: build the image with

docker build --no-cache -t pkgmgr .

or alternativ pull it via

docker pull kevinveenbirkenbach/pkgmgr:latest

and then run

docker run --rm pkgmgr --help

Usage 📖

Run the script with different commands. For example:

  • Install all packages:
    pkgmgr install --all
    
  • Pull updates for a specific repository:
    pkgmgr pull pkgmgr
    
  • Commit changes with extra Git parameters:
    pkgmgr commit pkgmgr -- -m "Your commit message"
    
  • List all configured packages:
    pkgmgr config show
    
  • Manage configuration:
    pkgmgr config init
    pkgmgr config add
    pkgmgr config edit
    pkgmgr config delete <identifier>
    pkgmgr config ignore <identifier> --set true
    

License 📄

This project is licensed under the MIT License.

Author 👤

Kevin Veen-Birkenbach
https://www.veen.world


Repository: github.com/kevinveenbirkenbach/package-manager

Created with AI 🤖 - View conversation

Description
No description provided
Readme MIT 9.1 MiB
Languages
Python 91.5%
Shell 7.1%
Makefile 0.7%
Nix 0.4%
Dockerfile 0.2%