File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ cd "$(dirname "$0")/.."
77MARKER_START=' {{COMMAND-OUTPUT "'
88MARKER_END=' "}}'
99ALLOWED_COMMANDS=(" phpcs" " phpcbf" )
10- DEFAULT_OPTIONS=(" --parallel=1" " --no-cache" " --no-colors" " --report-width=100" )
1110
1211tokenize_command () {
1312 read -ra TOKENS <<< " $1"
@@ -32,16 +31,12 @@ validate_tokens() {
3231 done
3332}
3433
35- add_default_options () {
36- EXECUTABLE_COMMAND=(" ${TOKENS[0]} " " ${DEFAULT_OPTIONS[@]} " " ${TOKENS[@]: 1} " )
37- }
38-
3934execute_command () {
4035 tokenize_command " $1 "
4136 check_allowed_commands
4237 validate_tokens
43- add_default_options
4438
39+ EXECUTABLE_COMMAND=(" ${TOKENS[0]} " " ${TOKENS[@]: 1} " )
4540 echo >&2 " INFO: running: " " ${EXECUTABLE_COMMAND[@]} "
4641 " ${EXECUTABLE_COMMAND[@]} "
4742}
You can’t perform that action at this time.
0 commit comments