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*"]