Skip to content

Commit 6f31b6a

Browse files
committed
added README
1 parent d81cc26 commit 6f31b6a

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ usage: node-scraper [-h] [--sys-name STRING] [--sys-location {LOCAL,REMOTE}] [--
2121
[--sys-sku STRING] [--sys-platform STRING] [--plugin-configs [STRING ...]] [--system-config STRING]
2222
[--connection-config STRING] [--log-path STRING] [--log-level {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG,NOTSET}]
2323
[--gen-reference-config]
24-
{run-plugins,describe,gen-plugin-config} ...
24+
{summary,run-plugins,describe,gen-plugin-config} ...
2525

2626
node scraper CLI
2727

2828
positional arguments:
29-
{run-plugins,describe,gen-plugin-config}
29+
{summary,run-plugins,describe,gen-plugin-config}
3030
Subcommands
31+
summary Generates summary csv file
3132
run-plugins Run a series of plugins
3233
describe Display details on a built-in config or plugin
3334
gen-plugin-config Generate a config for a plugin or list of plugins
@@ -38,7 +39,8 @@ options:
3839
--sys-location {LOCAL,REMOTE}
3940
Location of target system (default: LOCAL)
4041
--sys-interaction-level {PASSIVE,INTERACTIVE,DISRUPTIVE}
41-
Specify system interaction level, used to determine the type of actions that plugins can perform (default: INTERACTIVE)
42+
Specify system interaction level, used to determine the type of actions that plugins can perform (default:
43+
INTERACTIVE)
4244
--sys-sku STRING Manually specify SKU of system (default: None)
4345
--sys-platform STRING
4446
Specify system platform (default: None)
@@ -54,7 +56,6 @@ options:
5456
--gen-reference-config
5557
Generate reference config from system. Writes to ./reference_config.json. (default: False)
5658

57-
5859
```
5960
6061
### Subcommmands
@@ -167,6 +168,16 @@ This would produce the following config:
167168
}
168169
```
169170
171+
4. **'summary' sub command**
172+
The 'summary' subcommand can be used to combine results from multiple runs of node-scraper to a
173+
single summary.csv file. Sample run:
174+
```sh
175+
node-scraper summary --summary_path /<path_to_node-scraper_logs>
176+
```
177+
This will generate a new file '/<path_to_node-scraper_logs>/summary.csv' file. This file will
178+
contain the results from all 'errorscraper.csv' files from '/<path_to_node-scarper_logs>'.
179+
180+
170181
### Plugin Configs
171182
A plugin JSON config should follow the structure of the plugin config model defined here.
172183
The globals field is a dictionary of global key-value pairs; values in globals will be passed to

0 commit comments

Comments
 (0)