bhtool 0.2.4__tar.gz → 0.2.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: bhtool
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: Assorted CLI utilities for Bosco’s workflows (dev, media, macOS, LLM helpers).
5
5
  Author-email: Bosco Ho <apposite@gmail.com>
6
6
  Requires-Python: >=3.13
@@ -39,7 +39,7 @@ Assorted CLI utilities that are handy in Bosco’s day-to-day work—version bum
39
39
  | **clr-chmod** | Remove execute bit from non-shell files; tighten group/other write | |
40
40
  | **npread** | Print the shape of NumPy`.npy` files | |
41
41
  | **psword** | Find processes by name;`--kill` to terminate | |
42
- | **portkill** | Find processes listening on TCP ports;`--kill` to terminate | |
42
+ | **port** | Find processes listening on TCP ports;`--kill` to terminate | |
43
43
  | **rm-npm** | Recursively delete`node_modules` dirs and `package-lock.json` files | |
44
44
  | **text** | Convert between Markdown, HTML, DOCX, and Pug (needs`pandoc` and related tools on `PATH`) | |
45
45
  | **todict** | JSON or YAML file, or stdin, → Python`dict(...)`-style repr on stdout | |
@@ -23,7 +23,7 @@ Assorted CLI utilities that are handy in Bosco’s day-to-day work—version bum
23
23
  | **clr-chmod** | Remove execute bit from non-shell files; tighten group/other write | |
24
24
  | **npread** | Print the shape of NumPy`.npy` files | |
25
25
  | **psword** | Find processes by name;`--kill` to terminate | |
26
- | **portkill** | Find processes listening on TCP ports;`--kill` to terminate | |
26
+ | **port** | Find processes listening on TCP ports;`--kill` to terminate | |
27
27
  | **rm-npm** | Recursively delete`node_modules` dirs and `package-lock.json` files | |
28
28
  | **text** | Convert between Markdown, HTML, DOCX, and Pug (needs`pandoc` and related tools on `PATH`) | |
29
29
  | **todict** | JSON or YAML file, or stdin, → Python`dict(...)`-style repr on stdout | |
@@ -60,15 +60,15 @@ def psword_cmd(*words: str, kill: bool = False):
60
60
  psword_mod.psword(words, kill=kill)
61
61
 
62
62
 
63
- @app.command(name="portkill")
64
- def portkill_cmd(*ports: int, kill: bool = False):
63
+ @app.command(name="port")
64
+ def port_cmd(*ports: int, kill: bool = False):
65
65
  """Find processes listening on TCP ports and optionally kill them.
66
66
 
67
67
  :param ports: TCP ports to inspect (one or more).
68
68
  :param kill: If true, SIGKILL each listener; otherwise list them.
69
69
  """
70
70
  if not ports:
71
- app["portkill"].help_print()
71
+ app["port"].help_print()
72
72
  return
73
73
  import bhtool.portkill as portkill_mod
74
74
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "bhtool"
3
- version = "0.2.4"
3
+ version = "0.2.5"
4
4
  description = "Assorted CLI utilities for Bosco’s workflows (dev, media, macOS, LLM helpers)."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes