Metadata-Version: 2.5
Name: cli-base-utilities
Version: 0.34.0
Summary: Helpers to bild a CLI program
Project-URL: Documentation, https://codeberg.org/jedie/cli-base-utilities
Project-URL: Source, https://codeberg.org/jedie/cli-base-utilities
Author-email: Jens Diemer <git@jensdiemer.de>
License: GPL-3.0-or-later
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: bx-py-utils
Requires-Dist: packaging
Requires-Dist: python-dateutil
Requires-Dist: rich
Requires-Dist: tomlkit
Requires-Dist: tyro
Description-Content-Type: text/markdown

# cli-base-utilities

[![cli-base-utilities @ PyPi](https://img.shields.io/pypi/v/cli-base-utilities?label=cli-base-utilities%20%40%20PyPi)](https://pypi.org/project/cli-base-utilities/)
[![Python Versions](https://img.shields.io/pypi/pyversions/cli-base-utilities)](https://codeberg.org/jedie/cli-base-utilities/src/branch/main/pyproject.toml)
[![License GPL-3.0-or-later](https://img.shields.io/pypi/l/cli-base-utilities)](https://codeberg.org/jedie/cli-base-utilities/src/branch/main/LICENSE)

Helpers to build a CLI program and some useful tools for CLI programs.

```
pip install cli-base-utilities
```

## Features

Some of the features are:

* [`run_uv_audit()` to run `uv audit` with configuration from `pyproject.toml`](https://codeberg.org/jedie/cli-base-utilities/src/branch/main/docs/uv_audit.md)
* [`run_pip_audit()` to run `pip-audit` with configuration from `pyproject.toml`](https://codeberg.org/jedie/cli-base-utilities/src/branch/main/docs/pip_audit.md) (DEPRECATED: will be removed in the future, use `run_uv_audit()` instead)

TODO: Document all features here ;)


# start development

```bash
~$ git clone https://codeberg.org/jedie/cli-base-utilities.git
~$ cd cli-base-utilities
~/cli-base-utilities$ ./dev-cli.py --help
```


# dev CLI

[comment]: <> (✂✂✂ auto generated dev help start ✂✂✂)
```
usage: ./dev-cli.py [-h] {coverage,install,lint,mypy,nox,pip-audit,publish,shell-completion,test,update,update-readme-history,update-test-snapshot-files,uv-audit,version}



╭─ options ──────────────────────────────────────────────────────────────────────────────╮
│ -h, --help     show this help message and exit                                         │
╰────────────────────────────────────────────────────────────────────────────────────────╯
╭─ subcommands ──────────────────────────────────────────────────────────────────────────╮
│ (required)                                                                             │
│   • coverage   Run tests and show coverage report.                                     │
│   • install    Install requirements and 'cli_base' via pip as editable.                │
│   • lint       Check/fix code style by run: "ruff check --fix"                         │
│   • mypy       Run Mypy (configured in pyproject.toml)                                 │
│   • nox        Run nox                                                                 │
│   • pip-audit  DEPRECATED: Will be removed in the future, use "uv-audit" instead.      │
│                                                                                        │
│                Run pip-audit check against current requirements files                  │
│   • publish    Build and upload this project to PyPi                                   │
│   • shell-completion                                                                   │
│                Setup shell completion for this CLI (Currently only for bash and zsh)   │
│   • test       Run unittests                                                           │
│   • update     Update dependencies (uv.lock) and git pre-commit hooks                  │
│   • update-readme-history                                                              │
│                Update project history base on git commits/tags in README.md            │
│                                                                                        │
│                Will be exited with 1 if the README.md was updated otherwise with 0.    │
│                                                                                        │
│                Also, callable via e.g.:                                                │
│                    python -m cli_base update-readme-history -v                         │
│   • update-test-snapshot-files                                                         │
│                Update all test snapshot files (by remove and recreate all snapshot     │
│                files)                                                                  │
│   • uv-audit   Run "uv audit" against the locked dependencies                          │
│   • version    Print version and exit                                                  │
╰────────────────────────────────────────────────────────────────────────────────────────╯
```
[comment]: <> (✂✂✂ auto generated dev help end ✂✂✂)


# app CLI

[comment]: <> (✂✂✂ auto generated main help start ✂✂✂)
```
usage: cli-base-utilities [-h] {shell-completion,update-readme-history,version}



╭─ options ──────────────────────────────────────────────────────────────────────────────╮
│ -h, --help   show this help message and exit                                           │
╰────────────────────────────────────────────────────────────────────────────────────────╯
╭─ subcommands ──────────────────────────────────────────────────────────────────────────╮
│ (required)                                                                             │
│   • shell-completion                                                                   │
│              Setup shell completion for this CLI (Currently only for bash and zsh)     │
│   • update-readme-history                                                              │
│              Update project history base on git commits/tags in README.md              │
│                                                                                        │
│              Will always exist with exit code 0 because changed README is auto added   │
│              to git.                                                                   │
│                                                                                        │
│              Also, callable via e.g.:                                                  │
│                  python -m cli_base update-readme-history -v                           │
│   • version  Print version and exit                                                    │
╰────────────────────────────────────────────────────────────────────────────────────────╯
```
[comment]: <> (✂✂✂ auto generated main help end ✂✂✂)


# DEMO app CLI

[comment]: <> (✂✂✂ auto generated demo help start ✂✂✂)
```
usage: ./demo-cli.py [-h] {demo-endless-loop,demo-verbose-check-output-error,edit-settings,print-settings,systemd-debug,systemd-logs,systemd-remove,systemd-setup,systemd-status,systemd-stop,version}



╭─ options ──────────────────────────────────────────────────────────────────────────────╮
│ -h, --help         show this help message and exit                                     │
╰────────────────────────────────────────────────────────────────────────────────────────╯
╭─ subcommands ──────────────────────────────────────────────────────────────────────────╮
│ (required)                                                                             │
│   • demo-endless-loop                                                                  │
│                    Just a useless example command, used in systemd DEMO: It just print │
│                    some information in a endless loop.                                 │
│   • demo-verbose-check-output-error                                                    │
│                    DEMO for a error calling                                            │
│                    cli_base.cli_tools.subprocess_utils.verbose_check_output()          │
│   • edit-settings  Edit the settings file. On first call: Create the default one.      │
│   • print-settings                                                                     │
│                    Display (anonymized) MQTT server username and password              │
│   • systemd-debug  Print Systemd service template + context + rendered file content.   │
│   • systemd-logs   List and follow logs of systemd service. (May need sudo)            │
│   • systemd-remove                                                                     │
│                    Write Systemd service file, enable it and (re-)start the service.   │
│                    (May need sudo)                                                     │
│   • systemd-setup  Write Systemd service file, enable it and (re-)start the service.   │
│                    (May need sudo)                                                     │
│   • systemd-status                                                                     │
│                    Display status of systemd service. (May need sudo)                  │
│   • systemd-stop   Stops the systemd service. (May need sudo)                          │
│   • version        Print version and exit                                              │
╰────────────────────────────────────────────────────────────────────────────────────────╯
```
[comment]: <> (✂✂✂ auto generated demo help end ✂✂✂)


# Generate project history base on git commits/tags

Add a test case similar to [cli_base/tests/test_readme_history.py](https://codeberg.org/jedie/cli-base-utilities/src/branch/main/cli_base/tests/test_readme_history.py) into your project.
Add the needed `start`/`end` comments into your README.

To make a new release, do this:

* Increase your project version number
* Run tests to update the README
* commit the changes
* Create release

It's recommended to use git hookd (via [pre-commit](https://pre-commit.com/)) to update the README.
For this, add in your `pyproject.toml`:

```toml
[tool.cli_base]
version_module_name = "<your_package>" # Must provide the `__version__` attribute
```

Copy&paste [.pre-commit-config.yaml](https://codeberg.org/jedie/cli-base-utilities/src/branch/main/.pre-commit-config.yaml) into your project.

Add `pre-commit` to your requirements and install the git hooks by:

```bash
.venv/bin/pre-commit install
.venv/bin/pre-commit autoupdate
```

# Update pre-commit hooks

Update version in `.pre-commit-config.yaml` and make a release.

The Problem: The hooks are broken, if the "new" version is not tagged yet.
To create a release, it's possible to use all git commands (commit, push, etc) with `--no-verify` to skip the hooks.

It's easier to temporarily uninstall the hooks, create the release and install the hooks again, e.g.:

```bash
.../cli-base-utilities$ .venv/bin/pre-commit uninstall
# ...bump version, commit, push, merge... create release...
.../cli-base-utilities$ .venv/bin/pre-commit install
```

# Backwards-incompatible changes

## v0.14 - Switch from pip-tools to uv

`cli_base.run_pip_audit.run_pip_audit()` works now with `uv` base projects instead of `pip-tools`.


# history

[comment]: <> (✂✂✂ auto generated history start ✂✂✂)

* [v0.34.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.33.0...v0.34.0)
  * 2026-11-20 - Deprecate pip-audit, add "uv audit"
  * 2026-11-20 - Update uv exclude-newer date to allow non-vulnerable version 0.13.9
  * 2026-11-20 - Add AGENTS.md and update skill
  * 2026-10-03 - Expand tests
* [v0.33.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.32.2...v0.33.0)
  * 2026-09-21 - NEW: optional `force_dev_platform` in [tool.cli_base]
  * 2026-09-21 - Apply project updates
  * 2026-09-21 - Add project links to README
* [v0.32.2](https://codeberg.org/jedie/cli-base-utilities/compare/v0.32.1...v0.32.2)
  * 2026-09-13 - fix more github -> codeberg links
* [v0.32.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.32.0...v0.32.1)
  * 2026-09-13 - FIX: TypeCheckError: argument "project_info" (cli_base.cli_tools.git.CodebergInfo) did not match
  * 2026-09-13 - NEW: git.get_remote_info()
  * 2026-09-13 - Update README
  * 2026-09-11 - README.md aktualisiert

<details><summary>Expand older history entries ...</summary>

* [v0.32.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.31.1...v0.32.0)
  * 2026-09-11 - GitHub -> Codeberg + Radicle
* [v0.31.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.30.0...v0.31.1)
  * 2026-08-22 - Fix "pip-audit" command
  * 2026-08-22 - apply projects upgrades
  * 2026-06-16 - Enhance README utils
  * 2026-06-16 - remove lock file from git
* [v0.30.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.29.2...v0.30.0)
  * 2026-04-11 - Enhance print_version(): Add optional project_name and clean module name
* [v0.29.2](https://codeberg.org/jedie/cli-base-utilities/compare/v0.29.1...v0.29.2)
  * 2026-04-10 - Bugfix fallback to default Path instance
  * 2026-04-10 - update requirements
* [v0.29.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.29.0...v0.29.1)
  * 2026-04-09 - fix tests
  * 2026-04-09 - run_pip_audit(): Fill temp file directly from uv
  * 2026-04-09 - update requirements
  * 2026-04-09 - Apply project updates
* [v0.29.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.28.0...v0.29.0)
  * 2026-03-28 - fix publishing
  * 2026-03-28 - fix CI
  * 2026-03-28 - fix tests
  * 2026-03-28 - fix ruff
  * 2026-03-28 - deprecate shell completion
  * 2026-03-28 - Apply manageprojects updates
* [v0.28.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.27.4...v0.28.0)
  * 2026-02-19 - Fix update_readme_history() by escape backslashes for markdown rendering
  * 2026-02-19 - Don't set "text=True" as default for subprocess.check_call()
  * 2026-02-19 - Bugfix the "missing parts count" value in assert_in()
* [v0.27.4](https://codeberg.org/jedie/cli-base-utilities/compare/v0.27.3...v0.27.4)
  * 2026-02-16 - Bugfix initial commits without any parent version number
  * 2026-02-16 - Update requirements
* [v0.27.3](https://codeberg.org/jedie/cli-base-utilities/compare/v0.27.2...v0.27.3)
  * 2026-01-30 - Bugfix run_pip_audit() and add a tests for it
  * 2026-01-30 - self.assert_in_content() -> assert_in()
  * 2026-01-30 - Update requirements
* [v0.27.2](https://codeberg.org/jedie/cli-base-utilities/compare/v0.27.1...v0.27.2)
  * 2026-01-25 - Update requirements
  * 2026-01-25 - Enhance "assert_in": No stdout usage and no click import
* [v0.27.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.27.0...v0.27.1)
  * 2026-01-19 - Import pwd only if needed to avoid issues on non-unix systems
  * 2026-01-19 - Update requirements
* [v0.27.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.26.0...v0.27.0)
  * 2026-01-14 - NEW: cli_base.cli_tools.test_utils.base_testcases to deny output in unittests
  * 2026-01-14 - Apply manageprojects updates
  * 2026-01-14 - Update requirements
* [v0.26.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.25.0...v0.26.0)
  * 2025-12-22 - Update README
  * 2025-12-22 - NEW: git.changed_files(): Get a list of Path objects containing the changed files
  * 2025-12-22 - Update requirements
  * 2025-12-22 - Remove verbose output on "pip-audit" run
  * 2025-10-13 - -cli_base/cli_dev/update_readme_history.py and update test snapshots
  * 2025-10-13 - Fix code style
  * 2025-10-13 - Apply manageproject template updates
* [v0.25.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.24.1...v0.25.0)
  * 2025-09-23 - Shell completion: Remove fix_completion_prog() and add support for Z-Shell
* [v0.24.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.24.0...v0.24.1)
  * 2025-09-22 - Fix tests: don't remove the ".gitignore" file
  * 2025-09-22 - Add integration tests for shell complete with snapshots
  * 2025-09-22 - fix shell-complete and match full cli program path
  * 2025-09-22 - suffix prog name to differate between app/dev cli
* [v0.24.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.23.3...v0.24.0)
  * 2025-09-22 - Check README in CI, too
  * 2025-09-22 - NEW: setup_tyro_shell_completion(): Helper to setup shell completion for Tyro CLIs
  * 2025-09-22 - Don't use rich_traceback_install() in own CLI
  * 2025-09-20 - Update requirements
* [v0.23.3](https://codeberg.org/jedie/cli-base-utilities/compare/v0.23.2...v0.23.3)
  * 2025-09-20 - pre-commit config: Remove "default_install_hook_types"
  * 2025-09-20 - Update README: Always exit with 0 and always add (but no amend commit) changed README
  * 2025-09-20 - Update requirements
* [v0.23.2](https://codeberg.org/jedie/cli-base-utilities/compare/v0.23.1...v0.23.2)
  * 2025-09-20 - Always exit with 0 if "auto-commit" is on.
* [v0.23.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.23.0...v0.23.1)
  * 2025-09-20 - Update git history tests
  * 2025-09-20 - Bugfix Git detection and error messages
  * 2025-09-20 - Enhance pre-commit hook: Auto commit the changed README file
  * 2025-09-20 - update/add PyCharm run configs
  * 2025-09-20 - add pycharm .run file
  * 2025-09-20 - Remove obsolete ".flake8" file
  * 2025-09-20 - Update requirements and fix tests
* [v0.23.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.22.0...v0.23.0)
  * 2025-09-04 - separate click CLI test tools and deprecate them all
* [v0.22.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.21.1...v0.22.0)
  * 2025-09-03 - Use ruff instead of darker
* [v0.21.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.21.0...v0.21.1)
  * 2025-08-05 - Enhance MockToolsExecutor and accept "cwd", too.
* [v0.21.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.20.0...v0.21.0)
  * 2025-08-05 - NEW: Helper to mock `ToolsExecutor` in tests.
* [v0.20.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.19.0...v0.20.0)
  * 2025-08-04 - Release v0.20.0
  * 2025-08-04 - Fix git history caused by github
* [v0.19.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.18.0...v0.19.0)
  * 2025-07-29 - Expand Git() around commit message
  * 2025-07-29 - Update requirements
* [v0.18.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.17.1...v0.18.0)
  * 2025-06-16 - Add helper to display logs from systemd service
  * 2025-06-16 - Update requirements
* [v0.17.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.17.0...v0.17.1)
  * 2025-06-02 - Update requirements
  * 2025-06-02 - Execute "pre-commit autoupdate" only if "pre-commit" is installed
* [v0.17.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.16.0...v0.17.0)
  * 2025-02-12 - migrate from tox to nox
* [v0.16.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.15.1...v0.16.0)
  * 2025-01-17 - +lookup_python_tool()
* [v0.15.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.15.0...v0.15.1)
  * 2025-01-17 - Remove pip-tools work-a-round and update requirements
* [v0.15.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.14.0...v0.15.0)
  * 2024-12-03 - Restructure cli test utils
  * 2024-12-03 - Remove tyro work-a-round
* [v0.14.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.13.1...v0.14.0)
  * 2024-11-21 - Use tyro.extras.SubcommandApp()
  * 2024-11-21 - Update "install" command and use uv
  * 2024-11-21 - Switch from pip-tools to uv
* [v0.13.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.13.0...v0.13.1)
  * 2024-09-26 - Bugfix missing click. Add it for Backward compatibility
* [v0.13.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.12.0...v0.13.0)
  * 2024-09-26 - Add Helper for tyro and replace click with tyro in own CLIs
* [v0.12.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.11.0...v0.12.0)
  * 2024-09-25 - Add debug log to update_readme_history call
  * 2024-09-25 - Simplify AssertCliHelpInReadme to a flat function
  * 2024-09-25 - Apply manage projects updates
  * 2024-09-25 - Update requirements
* [v0.11.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.10.3...v0.11.0)
  * 2024-08-30 - Apply manageprojects updates, e.g.: Set min. Python to 3.11+
  * 2024-08-30 - NEW: EncloseRuleContext
* [v0.10.3](https://codeberg.org/jedie/cli-base-utilities/compare/v0.10.2...v0.10.3)
  * 2024-08-05 - Bugfix unchanable boolean flags in toml settings
* [v0.10.2](https://codeberg.org/jedie/cli-base-utilities/compare/v0.10.1...v0.10.2)
  * 2024-08-04 - Auto activate pre commit hooks
  * 2024-08-04 - Update demo CLI: Always update pip and pip-tools
  * 2024-08-04 - Handle KeyboardInterrupt in cli scripts.
  * 2024-08-04 - Bugfix #50 toml2dataclass(): AttributeError: 'bool' object has no attribute 'unwrap'.
  * 2024-08-02 - Fix doc link in README.md
* [v0.10.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.10.0...v0.10.1)
  * 2024-08-02 - Increase default timout from 5 to 15 minutes
  * 2024-08-02 - Update pre-commit hook version to cli-base-utilities v0.10.0
* [v0.10.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.9.0...v0.10.0)
  * 2024-08-02 - Use dateutil in get_commit_date()
  * 2024-08-02 - Replace "safety" by "pip-audit" and add tooling for it.
  * 2024-08-01 - Update manageprojects updates
* [v0.9.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.8.0...v0.9.0)
  * 2024-07-16 - Update project
* [v0.8.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.7.0...v0.8.0)
  * 2024-03-12 - Bugfix publish
  * 2024-03-12 - fix tests
  * 2024-03-12 - Split app/dev CLI into a package with autodiscovery
  * 2024-03-12 - Move click defaults
  * 2024-03-12 - Apply cookiecutter template updates
  * 2024-03-12 - Update requirements
  * 2024-01-16 - Use typeguard in tests
  * 2024-01-16 - manageprojects updates
  * 2024-01-16 - Update requirements + datetimes ;)
  * 2023-12-17 - Bugfix .pre-commit-config.yaml
* [v0.7.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.6.0...v0.7.0)
  * 2023-12-16 - Add "Update pre-commit hooks" to README
  * 2023-12-16 - Bugfix update_readme_history(): Use `__version__` from module
  * 2023-12-16 - NEW: "update-readme-history" git hook using "pre-commit"
  * 2023-12-16 - fix tests
  * 2023-12-16 - Bugfix type hints
  * 2023-12-16 - Add update-readme-history to app CLI
  * 2023-12-16 - Move DEMO into `./cli_base/demo/`
  * 2023-12-16 - Simplify App CLI
  * 2023-12-16 - Remove PACKAGE_ROOT from app CLI
  * 2023-12-16 - Update requirements
  * 2023-12-16 - Skip test_readme_history() on CI
* [v0.6.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.5.0...v0.6.0)
  * 2023-12-02 - NEW: Code style tools
* [v0.5.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.4.5...v0.5.0)
  * 2023-12-01 - fix flake8
  * 2023-12-01 - NEW: test utils: AssertLogs() context manager
  * 2023-12-01 - Bugfix expand_user() if SUDO_USER is the same as current user
  * 2023-12-01 - Add "run_coverage()" to "dev_tools" and polish tox, unittest, too.
  * 2023-12-01 - add tests for EraseCoverageData()
  * 2023-12-01 - Apply manageprojects updates
* [v0.4.5](https://codeberg.org/jedie/cli-base-utilities/compare/v0.4.4...v0.4.5)
  * 2023-11-30 - Configure unittests via "load_tests Protocol" hook
  * 2023-11-30 - Update requirements and add "flake8-bugbear"
  * 2023-11-30 - Remove function calls in function agruments
* [v0.4.4](https://codeberg.org/jedie/cli-base-utilities/compare/v0.4.3...v0.4.4)
  * 2023-11-01 - Bugfix "AssertionError: Expected only one line" in Git.first_commit_info()
* [v0.4.3](https://codeberg.org/jedie/cli-base-utilities/compare/v0.4.2...v0.4.3)
  * 2023-11-01 - Git history renderer: Collapse older entries
* [v0.4.2](https://codeberg.org/jedie/cli-base-utilities/compare/v0.4.1...v0.4.2)
  * 2023-11-01 - Remove duplicate git commits and keep only test last one, e.g.: "update requirements"
  * 2023-11-01 - Bugfix git history: Add commits before the first tag
* [v0.4.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.4.0...v0.4.1)
  * 2023-10-08 - Remove commit URLs from history and handle release a new version
  * 2023-10-08 - NEW: Generate a project history base on git commits/tags.
  * 2023-10-08 - Update requirements
  * 2023-09-26 - Update README.md
* [v0.4.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.3.0...v0.4.0)
  * 2023-09-24 - fix tests
  * 2023-09-24 - Add UpdateTestSnapshotFiles() Context Manager
  * 2023-09-24 - coverage: Refactor setup and add helpers
  * 2023-09-24 - Update requirements
* [v0.3.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.2.0...v0.3.0)
  * 2023-08-17 - Bugfix tests run in terminal
  * 2023-08-17 - update requirements
  * 2023-08-17 - NEW: cli_base.cli_tools.git and cli_base.cli_tools.version_info
* [v0.2.0](https://codeberg.org/jedie/cli-base-utilities/compare/d89f23b...v0.2.0)
  * 2023-08-09 - Project setup updates
  * 2023-05-22 - Update README.md
  * 2023-05-22 - Rename project "cli-base" to "cli-base-utilities"
  * 2023-05-22 - Add github CI config
  * 2023-05-22 - Add subprocess_utils from manageprojects
  * 2023-05-21 - init

</details>


[comment]: <> (✂✂✂ auto generated history end ✂✂✂)





## update-project skill

This project has a `.vibe/skills/update-project/SKILL.md` skill for **Mistral Vibe** that updates project dependencies and runs tests. It updates pyproject.toml dependencies, runs tests, and fixes tests only if failures are due to API changes from newer package versions.

Example CLI call to run this skill:
```bash
vibe "update project"
```

## GitHub suspended me!

**Important notice:**

----

GitHub _suspended_ [my account](https://github.com/jedie) sometime in late August 2026 !
There was **no** warning beforehand, nor **any explanation** of the reasons afterwards.
Since then, I have had **no access** or control over my data on GitHub.

All my projects and everything about me have completely disappeared.
**Everything** just results in a **404 "Not Found"** error page.

A support request still hasn't been answered, even after several weeks (apart from a confirmation that the request was received).

For that reason, I have been looking for a new home for all my OpenSource projects.
(Or rather, I am in the process of republishing all my projects elsewhere.)

Now you can find my on these place**s**:

* [**Codeberg**.org/jedie](https://codeberg.org/jedie)
* [**OpenCommit**.eu/jedie](https://opencommit.eu/jedie)
* [**GitLab**.com/users/jedie](https://gitlab.com/users/jedie/projects)
* [**Radicle**](https://radicle.network/install): [did:key:z6MkfvNUuBCwRtNZwANEAGd4vaTzyuZXMKfiSyjoBALga934](https://radicle.network/nodes/iris.radicle.network/users/did%3Akey%3Az6MkfvNUuBCwRtNZwANEAGd4vaTzyuZXMKfiSyjoBALga934) | [jedie.radicle.garden](https://radicle.network/nodes/jedie.radicle.garden)

That is why there will probably be a lot of broken links pointing to my GitHub account for quite some time!

#GitHubSuspendedMe #GiveUpGitHub

----


## Project links

* Codeberg: https://codeberg.org/jedie/cli-base-utilities/
* OpenCommit: https://opencommit.eu/jedie/cli-base-utilities/
* GitLab: https://gitlab.com/jedie/cli-base-utilities/
* PyPi: https://pypi.org/project/cli-base-utilities/
