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: README.md
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,16 +158,33 @@ This should give you an idea if you're moving in the direction of maintaining th
158
158
159
159
### Setting Output Formats
160
160
161
-
Skunk provides a simple configuration class to control output formats programmatically. You can use `Skunk::Config` to set which formats should be generated when running Skunk.
161
+
Skunk supports multiple output formats and you can select them via CLI or programmatically.
162
162
163
163
**Supported formats:**
164
-
-`:json` - JSON report (default)
164
+
-`:json` - JSON report
165
165
-`:html` - HTML report with visual charts and tables
166
+
-`:console` - Console output (default)
167
+
168
+
#### CLI flag
169
+
170
+
You can choose one or more formats from the command line:
171
+
172
+
```
173
+
skunk --formats=json
174
+
skunk --f json,html
175
+
skunk --formats console,json
176
+
```
177
+
178
+
If omitted, Skunk defaults to `console`.
179
+
180
+
#### Programmatic configuration
181
+
182
+
You can also configure formats in code using `Skunk::Config`:
166
183
167
184
```ruby
168
185
require'skunk/config'
169
186
170
-
# Set multiple formats
187
+
# Set multiple formats (equivalent to `--formats=json,html`)
0 commit comments