Skip to content

Commit 0861527

Browse files
committed
Update docs with --force-filetype change
1 parent 6e5bb0d commit 0861527

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.rst

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Unreleased
1212
1313
- Update vendored schemas: buildkite, circle-ci, mergify, renovate, taskfile,
1414
woodpecker-ci (2025-04-06)
15+
- A new option, ``--force-filetype``, is now supported and allows users to
16+
explicitly specify which parser should be used for instance files. Thanks
17+
:user:`mschoettle`! (:pr:`557`, :issue:`341`)
1518

1619
0.32.1
1720
------

docs/usage.rst

+8
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,14 @@ no extension should be treated as YAML.
221221
By default, this is not set and files without a detected type of JSON or YAML
222222
will fail.
223223

224+
``--force-filetype``
225+
~~~~~~~~~~~~~~~~~~~~~~
226+
227+
Set a filetype to use for instance files instead of detecting types.
228+
229+
For example, ``--force-filetype json5`` will use the JSON5 parser, even on
230+
files ending in ``.json``.
231+
224232
``--data-transform``
225233
~~~~~~~~~~~~~~~~~~~~
226234

0 commit comments

Comments
 (0)