visidata: add IP type with CIDR + lookups

This commit is contained in:
tobias
2026-02-15 17:23:09 +01:00
parent 1c9cdc5c19
commit 15934ec4a1
4 changed files with 409 additions and 4 deletions

View File

@@ -0,0 +1,19 @@
"""
Local VisiData plugins.
VisiData (v3.3) imports the top-level `plugins` package early (before config.py)
when `options.imports` contains "plugins" (default). Import submodules here so
their commands/types are registered on startup.
"""
# Keep imports resilient: a missing optional plugin shouldn't prevent VisiData from starting.
for _mod in (
"hidecol",
"iptype",
):
try:
__import__(f"{__name__}.{_mod}")
except Exception:
# VisiData will show exceptions in its error sheet if needed; don't hard-fail here.
pass