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
feat(test): Allow users to override variables defined in documents via --var when running ie test. (#210)
This allows users to specify/override environment variables inside a
markdown document by providing `--var KEY=VALUE` when running `ie test`.
Both `execute` and `interactive` already support this feature and the
implementation was ported over to `ie test`.
String("subscription", "", "Sets the subscription ID used by a scenarios azure-cli commands. Will rely on the default subscription if not set.")
20
21
testCommand.PersistentFlags().
21
22
String("working-directory", ".", "Sets the working directory for innovation engine to operate out of. Restores the current working directory when finished.")
23
+
24
+
testCommand.PersistentFlags().
25
+
StringArray("var", []string{}, "Sets an environment variable for the scenario. Format: --var <key>=<value>")
22
26
}
23
27
24
28
vartestCommand=&cobra.Command{
@@ -37,6 +41,25 @@ var testCommand = &cobra.Command{
0 commit comments