mirror of
https://github.com/trustedsec/hate_crack.git
synced 2026-06-12 19:11:46 -07:00
build(deps): make simple-term-menu a default dependency
Move simple-term-menu from the [tui] optional extra into the main dependencies list so arrow-key menu navigation works out of the box. Users can still opt into the plain numbered menu with HATE_CRACK_PLAIN_MENU=1. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -358,17 +358,11 @@ This installs hooks defined in `prek.toml` using the pre-commit local-repo TOML
|
||||
|
||||
Note: prek 0.3.3 expects `repos = [...]` at the top level. The old `[hooks.<stage>] commands = [...]` format is not supported.
|
||||
|
||||
### Arrow-Key Menu Navigation (Optional)
|
||||
### Arrow-Key Menu Navigation
|
||||
|
||||
Install the `[tui]` extra to enable arrow-key menu navigation via `simple-term-menu`:
|
||||
Arrow-key menu navigation is enabled by default via the `simple-term-menu` dependency. When running in a terminal (TTY), menus render with arrow-key navigation and number-key shortcuts.
|
||||
|
||||
```bash
|
||||
uv pip install '.[tui]'
|
||||
```
|
||||
|
||||
When installed and running in a terminal (TTY), menus render with arrow-key navigation and number-key shortcuts. Without it, the classic numbered `print()` + `input()` menu is used.
|
||||
|
||||
To force the plain numbered menu even when `simple-term-menu` is installed, set `HATE_CRACK_PLAIN_MENU=1`.
|
||||
To force the classic numbered `print()` + `input()` menu, set `HATE_CRACK_PLAIN_MENU=1`.
|
||||
|
||||
### Dev Dependencies
|
||||
|
||||
|
||||
+1
-3
@@ -13,14 +13,12 @@ dependencies = [
|
||||
"beautifulsoup4>=4.12.0",
|
||||
"openpyxl>=3.0.0",
|
||||
"packaging>=21.0",
|
||||
"simple-term-menu==1.6.6",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
hate_crack = "hate_crack.__main__:main"
|
||||
|
||||
[project.optional-dependencies]
|
||||
tui = ["simple-term-menu==1.6.6"]
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
include = ["hate_crack*"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user