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
Renames YAML field names in dutagent configuration:
modules → uses and options → with for improved clarity and consistency
with common workflow syntax patterns.
Changes:
- Added YAML tags to Modules and Options struct fields to map new field names
- Updated documentation tables and descriptions to reflect new field names
- Migrated all example configuration files to new syntax
BREAKING CHANGE: The dutagent configuration changed. Existing configurations
must be updated in the following way:
From
commands:
- name: example
modules:
- name: flash
options:
file: firmware.bin
To
commands:
- name: example
uses:
- name: flash
with:
file: firmware.bin
The old field names (modules, options) are no longer supported.
Signed-off-by: Fabian Wienand <fabian.wienand@9elements.com>
| description | string || Command description | no |
37
-
|Modules|[][Module](#Module)|| A command may be composed of multiple steps to achieve its purpose. The list of modules represent these steps.The order of this list is important, though. Exactly one of the modules must be set as the main module. All arguments to a command are passed to its main module. The main modules usage information is also used as the command help text. If a Command is composed of only one module, this module becomes the main module implicitly. | yes |
37
+
|uses|[][Module](#Module)|| A command may be composed of multiple steps to achieve its purpose. The list of modules represent these steps.The order of this list is important, though. Exactly one of the modules must be set as the main module. All arguments to a command are passed to its main module. The main modules usage information is also used as the command help text. If a Command is composed of only one module, this module becomes the main module implicitly. | yes |
38
38
39
39
### Module
40
40
@@ -43,10 +43,10 @@ could look like.
43
43
| module | string || The module's name also serves as its identifier and must be unique. | yes |
44
44
| main | bool | false | All arguments to a command are passed to its main module. The main modules usage information is also used as the command help text. Can be omitted, if only one modules exists within the command. | exactly once per command |
45
45
| args |[]string | nil | If a module is **not** an commands main module, it does not get any arguments passed at runtime, instead arguments can be passed here. | no, only applies if `main` is set |
46
-
|options| map[string]any || A module can be configured via key-value pairs. The type of the value is generic and depends on the implementation of the module. | yes |
46
+
|with| map[string]any || A module can be configured via key-value pairs. The type of the value is generic and depends on the implementation of the module. | yes |
47
47
48
48
> [!IMPORTANT]
49
-
> Refer to option keys of a module in all-lowercase representation of the modules exported fields.
49
+
> Refer to `with` keys of a module in all-lowercase representation of the module's exported fields.
50
50
> See the respective module's documentation for details.
0 commit comments