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
Behind the scenes commands are now spawned direct to avoid unexpected input and output redirection or odd argument parsings. This is what happens and what changed:
8
+
9
+
Linux:
10
+
11
+
```diff
12
+
- /bin/sh -c "slack trigger run --workflow #/workflows/give_kudos_workflow"
* Used to escape double quotes in JSON strings; this is needed when JSON is passed as a command line argument, which for the datastore commands, it is.
// In windows, we actually spawn a command prompt and tell it to invoke the CLI command.
264
-
// The combination of windows and node's child_process spawning is complicated: on windows, child_process strips quotes from arguments. This makes passing JSON difficult.
265
-
// As a workaround, we:
266
-
// 1. Wrap the CLI command with a Windows Command Prompt (cmd.exe) process, and
267
-
// 2. Execute the command to completion (via the /c option), and
268
-
// 3. Leave spaces intact (via the /s option), and
269
-
// 4. Feed the arguments as an argument array into `child_process.spawn`.
0 commit comments