tree-sitter-dockerfile/test/corpus/cmd.txt

60 lines
731 B
Plaintext
Raw Permalink Normal View History

2021-05-09 22:11:30 -04:00
==================
Shell command
==================
CMD echo "test"
---
(source_file
(cmd_instruction
(shell_command
(shell_fragment))))
2021-05-09 22:11:30 -04:00
==================
Shell command multiline
==================
CMD echo "test" \
"foo" \
bar
---
(source_file
(cmd_instruction
(shell_command
(shell_fragment)
(line_continuation)
(shell_fragment)
(line_continuation)
(shell_fragment))))
2021-05-09 22:11:30 -04:00
==================
Run with shell empty array
==================
cmd []
---
(source_file
(cmd_instruction
(json_string_array)))
2021-05-09 22:11:30 -04:00
==================
Run with shell array
==================
cmd ["echo", "test"]
---
(source_file
(cmd_instruction
(json_string_array
(json_string)
(json_string))))
2021-05-09 22:11:30 -04:00