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")/.."
7
7
MARKER_START=' {{COMMAND-OUTPUT "'
8
8
MARKER_END=' "}}'
9
9
ALLOWED_COMMANDS=(" phpcs" " phpcbf" )
10
- DEFAULT_OPTIONS=(" --parallel=1" " --no-cache" " --no-colors" " --report-width=100" )
11
10
12
11
tokenize_command () {
13
12
read -ra TOKENS <<< " $1"
@@ -32,16 +31,12 @@ validate_tokens() {
32
31
done
33
32
}
34
33
35
- add_default_options () {
36
- EXECUTABLE_COMMAND=(" ${TOKENS[0]} " " ${DEFAULT_OPTIONS[@]} " " ${TOKENS[@]: 1} " )
37
- }
38
-
39
34
execute_command () {
40
35
tokenize_command " $1 "
41
36
check_allowed_commands
42
37
validate_tokens
43
- add_default_options
44
38
39
+ EXECUTABLE_COMMAND=(" ${TOKENS[0]} " " ${TOKENS[@]: 1} " )
45
40
echo >&2 " INFO: running: " " ${EXECUTABLE_COMMAND[@]} "
46
41
" ${EXECUTABLE_COMMAND[@]} "
47
42
}
You can’t perform that action at this time.
0 commit comments