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
|`$cwd`|`string` or `null`| Sets the process working directory. If not set {{working_path}} will be used. |
267
267
|`$timeout`|`int` or `null`| Sets the process timeout (max. runtime). The timeout in seconds (default: 300 sec; see {{default_timeout}}, `null` to disable). |
268
268
|`$idleTimeout`|`int` or `null`| Sets the process idle timeout (max. time since last output) in seconds. |
269
-
|`$secret`|`string` or `null`| Placeholder `%secret%`can be used in command. Placeholder will be replaced with this value and will not appear in any logs. |
269
+
|`$secrets`|`array` or `null`| Placeholder `%secret%`for sensitive information. |
270
270
|`$env`|`array` or `null`| Array of environment variables: `run('echo $KEY', env: ['key' => 'value']);`|
271
271
|`$forceOutput`|`bool` or `null`| Print command output in real-time. |
272
272
|`$nothrow`|`bool` or `null`| Don't throw an exception of non-zero exit code. |
run("mysql --user=\"root\" -e \"CREATE USER IF NOT EXISTS '{{db_user}}'@'0.0.0.0' IDENTIFIED BY '%secret%';\"", secret: get('db_password'));
43
-
run("mysql --user=\"root\" -e \"CREATE USER IF NOT EXISTS '{{db_user}}'@'%' IDENTIFIED BY '%secret%';\"", secret: get('db_password'));
42
+
run("mysql --user=\"root\" -e \"CREATE USER IF NOT EXISTS '{{db_user}}'@'0.0.0.0' IDENTIFIED BY '%db_password%';\"", secrets: ['db_password' => get('db_password')]);
43
+
run("mysql --user=\"root\" -e \"CREATE USER IF NOT EXISTS '{{db_user}}'@'%' IDENTIFIED BY '%db_password%';\"", secrets: ['db_password' => get('db_password')]);
44
44
run("mysql --user=\"root\" -e \"GRANT ALL PRIVILEGES ON *.* TO '{{db_user}}'@'0.0.0.0' WITH GRANT OPTION;\"");
45
45
run("mysql --user=\"root\" -e \"GRANT ALL PRIVILEGES ON *.* TO '{{db_user}}'@'%' WITH GRANT OPTION;\"");
run("mysql --user=\"root\" -e \"CREATE USER IF NOT EXISTS '{{db_user}}'@'0.0.0.0' IDENTIFIED BY '%secret%';\"", secret: get('db_password'));
54
-
run("mysql --user=\"root\" -e \"CREATE USER IF NOT EXISTS '{{db_user}}'@'%' IDENTIFIED BY '%secret%';\"", secret: get('db_password'));
53
+
run("mysql --user=\"root\" -e \"CREATE USER IF NOT EXISTS '{{db_user}}'@'0.0.0.0' IDENTIFIED BY '%db_password%';\"", secrets: ['db_password' => get('db_password')]);
54
+
run("mysql --user=\"root\" -e \"CREATE USER IF NOT EXISTS '{{db_user}}'@'%' IDENTIFIED BY '%db_password%';\"", secrets: ['db_password' => get('db_password')]);
55
55
run("mysql --user=\"root\" -e \"GRANT ALL PRIVILEGES ON *.* TO '{{db_user}}'@'0.0.0.0' WITH GRANT OPTION;\"");
56
56
run("mysql --user=\"root\" -e \"GRANT ALL PRIVILEGES ON *.* TO '{{db_user}}'@'%' WITH GRANT OPTION;\"");
@@ -380,7 +380,7 @@ function within(string $path, callable $callback): mixed
380
380
* @param string|null $cwd Sets the process working directory. If not set {{working_path}} will be used.
381
381
* @param int|null $timeout Sets the process timeout (max. runtime). The timeout in seconds (default: 300 sec; see {{default_timeout}}, `null` to disable).
382
382
* @param int|null $idleTimeout Sets the process idle timeout (max. time since last output) in seconds.
383
-
* @param string|null $secret Placeholder `%secret%` can be used in command. Placeholder will be replaced with this value and will not appear in any logs.
383
+
* @param array|null $secrets Placeholder `%secret%` for sensitive information.
* @param string|null $cwd Sets the process working directory. If not set {{working_path}} will be used.
470
470
* @param int|null $timeout Sets the process timeout (max. runtime). The timeout in seconds (default: 300 sec, `null` to disable).
471
471
* @param int|null $idleTimeout Sets the process idle timeout (max. time since last output) in seconds.
472
-
* @param string|null $secret Placeholder `%secret%` can be used in command. Placeholder will be replaced with this value and will not appear in any logs.
472
+
* @param array|null $secrets Placeholder `%secret%` for sensitive information.
0 commit comments