Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 973 Bytes

File metadata and controls

53 lines (36 loc) · 973 Bytes

test-python-cli-tool

A simple Python CLI tool aimed at testing systems that use Python CLI tools

Prerequisites

Development Setup

uv sync
uv run test-python-cli-tool --help

Build

Build a single-file executable using shiv:

./sh/build-package.sh

The output binary will be at build/test-python-cli-tool.

Install

Install directly from the repository:

uv tool install git+https://github.com/bozemanpass/test-python-cli-tool.git

Subcommands

Command Description
echo <message> Echo back the provided message
greet [name] Print a greeting (defaults to "World")
version Print the tool version
env [VAR ...] Print environment variables (all, or specific ones by name)
exit-code <code> Exit with the specified exit code

Testing

make test

Linting

make lint