scanner-cli 0.1.0rc8__py3-none-any.whl → 0.1.0rc9__py3-none-any.whl
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.
- {scanner_cli-0.1.0rc8.dist-info → scanner_cli-0.1.0rc9.dist-info}/METADATA +4 -3
- scanner_cli-0.1.0rc9.dist-info/RECORD +9 -0
- {scanner_cli-0.1.0rc8.dist-info → scanner_cli-0.1.0rc9.dist-info}/WHEEL +1 -1
- src/cli.py +7 -1
- scanner_cli-0.1.0rc8.dist-info/RECORD +0 -9
- {scanner_cli-0.1.0rc8.dist-info → scanner_cli-0.1.0rc9.dist-info}/entry_points.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.3
|
2
2
|
Name: scanner-cli
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.0rc9
|
4
4
|
Summary: Python command-line interface for Scanner API
|
5
5
|
Author: Scanner, Inc.
|
6
6
|
Author-email: support@scanner.dev
|
@@ -9,9 +9,10 @@ Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.10
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
12
13
|
Requires-Dist: PyYAML (>=6.0.2,<7.0.0)
|
13
14
|
Requires-Dist: click (>=8.1.7,<9.0.0)
|
14
|
-
Requires-Dist: scanner-client (>=0.1.
|
15
|
+
Requires-Dist: scanner-client (>=0.1.0rc10,<0.2.0)
|
15
16
|
Description-Content-Type: text/markdown
|
16
17
|
|
17
18
|
# scanner-cli
|
@@ -0,0 +1,9 @@
|
|
1
|
+
src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
src/cli.py,sha256=wk7Dmm0yyBZ7U8nLJSKui4EyGHYg-L53VyLA2Q4bLfs,9421
|
3
|
+
src/migrate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
+
src/migrate/elastic.py,sha256=y_cn_3Y_t8NHwYcpAQQLfnCkEBSULoU_vxxGwk47QAc,8681
|
5
|
+
src/sync.py,sha256=WABCtvI6fpwXNJKo9lzafw3HkGYljpGjre5ywKnO0yA,7738
|
6
|
+
scanner_cli-0.1.0rc9.dist-info/METADATA,sha256=wuTJITM3W5MKe4u9y7HSX6sCwYeekMbXaXJ41gBvWik,5942
|
7
|
+
scanner_cli-0.1.0rc9.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
8
|
+
scanner_cli-0.1.0rc9.dist-info/entry_points.txt,sha256=vqXMrIG6N6pY66bNf0y-gbUxbU8v5dXvuL3mV832Fh8,43
|
9
|
+
scanner_cli-0.1.0rc9.dist-info/RECORD,,
|
src/cli.py
CHANGED
@@ -129,7 +129,10 @@ def validate(api_url: str, api_key: str, file_paths: str, directories: str, recu
|
|
129
129
|
result = scanner_client.detection_rule_yaml.validate(file)
|
130
130
|
|
131
131
|
if result.is_valid:
|
132
|
-
|
132
|
+
if result.warning:
|
133
|
+
click.echo(f"{file}: " + click.style("OK. ", fg="green") + click.style(f"Warning: {result.warning}", fg="yellow"))
|
134
|
+
else:
|
135
|
+
click.echo(f"{file}: " + click.style("OK", fg="green"))
|
133
136
|
else:
|
134
137
|
any_failures = True
|
135
138
|
click.echo(f"{file}: " + click.style(f"{result.error}", fg="red"))
|
@@ -172,6 +175,9 @@ def run_tests(api_url: str, api_key: str, file_paths: str, directories: str, rec
|
|
172
175
|
click.echo("")
|
173
176
|
continue
|
174
177
|
|
178
|
+
if validation_result.warning:
|
179
|
+
click.secho(f"Warning: {validation_result.warning}", fg="yellow")
|
180
|
+
|
175
181
|
# Run detection rule tests
|
176
182
|
run_tests_response = scanner_client.detection_rule_yaml.run_tests(file)
|
177
183
|
results = run_tests_response.results.to_dict()
|
@@ -1,9 +0,0 @@
|
|
1
|
-
src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
src/cli.py,sha256=1in8DDTlhYNXaaxvLwdYWiNHBr4VMnTBIzq59fLkhXc,9100
|
3
|
-
src/migrate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
src/migrate/elastic.py,sha256=y_cn_3Y_t8NHwYcpAQQLfnCkEBSULoU_vxxGwk47QAc,8681
|
5
|
-
src/sync.py,sha256=WABCtvI6fpwXNJKo9lzafw3HkGYljpGjre5ywKnO0yA,7738
|
6
|
-
scanner_cli-0.1.0rc8.dist-info/METADATA,sha256=Dch4WTSbmhU152rnEBOAFDh1eYRbNlMXBi-vK3Qgd10,5890
|
7
|
-
scanner_cli-0.1.0rc8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
8
|
-
scanner_cli-0.1.0rc8.dist-info/entry_points.txt,sha256=vqXMrIG6N6pY66bNf0y-gbUxbU8v5dXvuL3mV832Fh8,43
|
9
|
-
scanner_cli-0.1.0rc8.dist-info/RECORD,,
|
File without changes
|