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
refactor: rename main to interactive throughout codebase
Updated terminology from "main module" to "interactive module" to better reflect
the module's purpose of receiving runtime arguments.
Signed-off-by: Fabian Wienand <[email protected]>
| description | string || Command description | no |
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. At most one module may be set as the main module. If a main module is present, all arguments to the command are passed to it, and its usage information is used as the command help text. | 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. At most one module may be set as the interactive module. If an interactive module is present, all arguments to the command are passed to it, and its usage information is used as the command help text. | yes |
| module | string || The module's name also serves as its identifier and must be unique. | yes |
44
-
|main| bool | false | Marks this module as the main module. All runtime arguments to a command are passed to its main module. The main module's usage information is also used as the command help text. | 0 or 1 times per command |
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 |
44
+
|interactive| bool | false | Marks this module as the interactive module. All runtime arguments to a command are passed to its interactive module. The interactive module's usage information is also used as the command help text. | 0 or 1 times per command |
45
+
| args |[]string | nil | If a module is **not** an commands interactive module, it does not get any arguments passed at runtime, instead arguments can be passed here. | no, only applies if `main` is set |
46
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 |
0 commit comments