diff options
| author | Victor Näslund <victor@sunet.se> | 2022-11-16 19:38:36 +0100 |
|---|---|---|
| committer | Victor Näslund <victor@sunet.se> | 2022-11-16 19:38:36 +0100 |
| commit | 49cd9e90ae5f9a374ccd73f4a064d89729cdfb5e (patch) | |
| tree | 01788862c606087c7a94e8493670e2d429a16c55 /src/soc_collector/soc_collector_cli.py | |
| parent | 419862b9575f7a2254d777ab0e0d38a09e065603 (diff) | |
renamed key search to filter
Diffstat (limited to 'src/soc_collector/soc_collector_cli.py')
| -rw-r--r-- | src/soc_collector/soc_collector_cli.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/soc_collector/soc_collector_cli.py b/src/soc_collector/soc_collector_cli.py index 27df732..9f8c793 100644 --- a/src/soc_collector/soc_collector_cli.py +++ b/src/soc_collector/soc_collector_cli.py @@ -180,8 +180,9 @@ def main() -> None: info: Show info about the database, currently number of documents. search: json blog OR path to file. skip defaults to 0 and limit to 25. - '{"search": {"port": 111, "ip": "192.0.2.28"}, "skip": 0, "limit": 25}' OR ./search_data.json - '{"search": {"asn_country_code": "SE", "result": {"$exists": "cve_2015_0002"}}}' + '{"filter": {"port": 111, "ip": "192.0.2.28"}, "skip": 0, "limit": 25}' OR ./search_data.json + '{"filter": {"asn_country_code": "SE", "result": {"$exists": "cve_2015_0002"}}}' + '{"filter": {}}' get: key OR path to document using its "_id". 637162378c92893fff92bf7e OR ./data.json @@ -217,7 +218,7 @@ def main() -> None: case $prev in search) - COMPREPLY="'{\\"search\\": {\\"asn_country_code\\": \\"SE\\", \\"ip\\": \\"8.8.8.8\\"}}'" + COMPREPLY="'{\\"filter\\": {\\"asn_country_code\\": \\"SE\\", \\"ip\\": \\"192.0.2.28\\"}}'" return ;; esac |
