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
// ZarfComponent is the primary functional grouping of assets to deploy by Zarf.
@@ -228,7 +226,7 @@ type ZarfComponentActionDefaults struct {
228
226
// Additional environment variables for commands.
229
227
Env []string`json:"env,omitempty"`
230
228
// (cmd only) Indicates a preference for a shell for the provided cmd to be executed in on supported operating systems.
231
-
Shellexec.Shell`json:"shell,omitempty"`
229
+
ShellShell`json:"shell,omitempty"`
232
230
}
233
231
234
232
// ZarfComponentAction represents a single action to run during a zarf package operation.
@@ -246,11 +244,11 @@ type ZarfComponentAction struct {
246
244
// The command to run. Must specify either cmd or wait for the action to do anything.
247
245
Cmdstring`json:"cmd,omitempty"`
248
246
// (cmd only) Indicates a preference for a shell for the provided cmd to be executed in on supported operating systems.
249
-
Shell*exec.Shell`json:"shell,omitempty"`
247
+
Shell*Shell`json:"shell,omitempty"`
250
248
// [Deprecated] (replaced by setVariables) (onDeploy/cmd only) The name of a variable to update with the output of the command. This variable will be available to all remaining actions and components in the package. This will be removed in Zarf v1.0.0.
// (onDeploy/cmd only) An array of variables to update with the output of the command. These variables will be available to all remaining actions and components in the package.
// Description of the action to be displayed during package execution instead of the command.
255
253
Descriptionstring`json:"description,omitempty"`
256
254
// Wait for a condition to be met before continuing. Must specify either cmd or wait for the action. See the 'zarf tools wait-for' command for more info.
// Shell represents the desired shell to use for a given command
334
+
typeShellstruct {
335
+
Windowsstring`json:"windows,omitempty" jsonschema:"description=(default 'powershell') Indicates a preference for the shell to use on Windows systems (note that choosing 'cmd' will turn off migrations like touch -> New-Item),example=powershell,example=cmd,example=pwsh,example=sh,example=bash,example=gsh"`
336
+
Linuxstring`json:"linux,omitempty" jsonschema:"description=(default 'sh') Indicates a preference for the shell to use on Linux systems,example=sh,example=bash,example=fish,example=zsh,example=pwsh"`
337
+
Darwinstring`json:"darwin,omitempty" jsonschema:"description=(default 'sh') Indicates a preference for the shell to use on macOS systems,example=sh,example=bash,example=fish,example=zsh,example=pwsh"`
// Whether to mark this variable as sensitive to not print it in the log
88
+
Sensitivebool`json:"sensitive,omitempty"`
89
+
// Whether to automatically indent the variable's value (if multiline) when templating. Based on the number of chars before the start of ###ZARF_VAR_.
90
+
AutoIndentbool`json:"autoIndent,omitempty"`
91
+
// An optional regex pattern that a variable value must match before a package deployment can continue.
92
+
Patternstring`json:"pattern,omitempty"`
93
+
// Changes the handling of a variable to load contents differently (i.e. from a file rather than as a raw variable - templated files should be kept below 1 MiB)
// The value to set for the constant during deploy
113
+
Valuestring`json:"value"`
114
+
// A description of the constant to explain its purpose on package create or deploy confirmation prompts
115
+
Descriptionstring`json:"description,omitempty"`
116
+
// Whether to automatically indent the variable's value (if multiline) when templating. Based on the number of chars before the start of ###ZARF_CONST_.
117
+
AutoIndentbool`json:"autoIndent,omitempty"`
118
+
// An optional regex pattern that a constant value must match before a package can be created.
119
+
Patternstring`json:"pattern,omitempty"`
120
+
}
121
+
122
+
// SetVariable tracks internal variables that have been set during this run of Zarf
123
+
typeSetVariablestruct {
124
+
Variable`json:",inline"`
125
+
// The value the variable is currently set with
126
+
Valuestring`json:"value"`
127
+
}
128
+
129
+
// Validate runs all validation checks on a package constant.
0 commit comments