From b20eb115833e279be77317661da992717b2e8c52 Mon Sep 17 00:00:00 2001 From: tegwick Date: Sun, 17 May 2026 05:27:34 +0200 Subject: [PATCH] feat: restore issue-tracker console script as migration hint Callers using the pre-rename `issue-tracker` command now get a clear stderr message pointing them at `issue-core` (or the short `issue` alias) and exit code 2, instead of `command not found`. Co-Authored-By: Claude Opus 4.7 --- issue_core/cli/legacy.py | 18 ++++++++++++++++++ pyproject.toml | 1 + 2 files changed, 19 insertions(+) create mode 100644 issue_core/cli/legacy.py diff --git a/issue_core/cli/legacy.py b/issue_core/cli/legacy.py new file mode 100644 index 0000000..0b8173c --- /dev/null +++ b/issue_core/cli/legacy.py @@ -0,0 +1,18 @@ +""" +Legacy entry-point shims for renamed console scripts. + +Kept so that callers using the pre-rename names get a clear, loud migration +hint instead of `command not found`. +""" + +import sys + + +def issue_tracker_hint() -> None: + """`issue-tracker` -> `issue-core` migration hint.""" + sys.stderr.write( + "issue-tracker has been renamed to issue-core.\n" + " - Run `issue-core ` (or the short alias `issue `) instead.\n" + " - The Python package is now `issue_core` (was `issue_tracker`).\n" + ) + sys.exit(2) diff --git a/pyproject.toml b/pyproject.toml index df79bb6..ddaafd0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,6 +78,7 @@ Repository = "https://github.com/coulomb/issue-core.git" [project.scripts] issue = "issue_core.cli.main:main" issue-core = "issue_core.cli.main:main" +issue-tracker = "issue_core.cli.legacy:issue_tracker_hint" [tool.setuptools.packages.find] include = ["issue_core*"]