You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: messages/rules-command.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,10 +124,15 @@ If you specify neither `--view` nor `--output-file`, then the default table view
124
124
125
125
# flags.output-file.summary
126
126
127
-
Name of the file where the selected rules are written. The file format depends on the extension you specify; currently, only .json is supported for JSON-formatted output.
127
+
Name of the file where the selected rules are written. The file format depends on the extension you specify; the currently supported extensions are .json and .csv
128
128
129
129
# flags.output-file.description
130
130
131
-
If you specify a file within folder, such as `--output-file ./out/rules.json`, the folder must already exist, or you get an error. If the file already exists, it's overwritten without prompting.
131
+
If you don't specify this flag, the command outputs the rules to only the terminal. Use this flag to write the rules to a file; the format of the rules depends on the extension you provide. For example, `--output-file rules.csv` creates a comma-separated values file. You can specify one of these extensions:
132
+
133
+
- .csv
134
+
- .json
132
135
133
-
If you don't specify this flag, the command outputs the rules to only the terminal.
136
+
To output the rules to multiple files, specify this flag multiple times. For example, `--output-file rules.json --output-file rules.csv` creates both a JSON file and a CSV file.
137
+
138
+
If you specify a file within folder, such as `--output-file ./out/rules.json`, the folder must already exist, or you get an error. If the file already exists, it's overwritten without prompting.
0 commit comments