visidata: add IP type with CIDR + lookups
This commit is contained in:
19
config/visidata/plugins/__init__.py
Normal file
19
config/visidata/plugins/__init__.py
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user