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
Added --format option to manage configuration in other formats.
Initially, YAML is the only supported conversion format.
JSON/YAML conversion is performed with yq(1).
Suggested by: Torstein Krause Johansen <https://github.com/skybert>
Closes: #958 <#958>
Copy file name to clipboardExpand all lines: tools/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,12 +37,16 @@ web page with NGINX Unit.
37
37
| _HTTP method_ | It is usually not required to specify a HTTP method. `GET` is used to read the configuration. `PUT` is used when making configuration changes unless a specific method is provided.
38
38
| `edit` | Opens **URI** in the default editor for interactive configuration. The [jq](https://stedolan.github.io/jq/) tool is required for this option.
39
39
| `INSERT` | A _virtual_ HTTP method that prepends data when the URI specifies an existing array. The [jq](https://stedolan.github.io/jq/) tool is required for this option.
40
+
| `-f`\|`--format YAML` | Convert configuration data to/from YAML format. The [yq](https://github.com/mikefarah/yq) tool is required for this option.
40
41
| `-q`\|`--quiet` | No output to stdout.
41
42
42
43
Options are case insensitive and can appear in any order. For example, a
43
44
redundant part of the configuration can be identified by its URI, and
44
45
followed by `delete` in a subsequent command.
45
46
47
+
Options may be combined. For example, `edit -f yaml` will open the
48
+
configuration URI in a text editor, in YAML format.
49
+
46
50
### Local Configuration
47
51
For local instances of Unit, the control socket is automatically detected.
48
52
The error log is monitored; when changes occur, new log entries are shown.
0 commit comments