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
It's generally a good practice to prefer single-quotes in shell script strings unless you plan on interpolating environment variables.
It's purely stylistic here, but there's something about shell code that looks safer at first-glance. It's sorta like the how SQL query string _can_ be safe when concatenating another string directly onto it, but it doesn't _look_ as safe at first glance as one that escapes the inputs.
Plus, given that the NPM scripts are already inside a JSON strings, getting rid of the escaped characters makes it look neater! :3
When piping concurrently's outputs to another command or file, you might want to force it to not use colors, as these can break the other command's parsing, or reduce the legibility of the output in non-terminal environments.
$ concurrently --prefix '{index}-{pid}''echo Hello there''echo General Kenobi!'
51
51
0-2222 Hello there
52
52
1-2223 General Kenobi!
53
53
0-2222 echo Hello there exited with code 0
@@ -62,7 +62,7 @@ This can be changed by using the `--prefix-colors`/`-c` flag, which takes a comm
62
62
The available values are color names (e.g. `green`, `magenta`, `gray`, etc), a hex value (such as `#23de43`), or `auto`, to automatically select a color.
0 commit comments