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

59 lines
797 B
Plaintext
Raw Normal View History

2021-05-09 22:11:30 -04:00
==================
Shell command
==================
ENTRYPOINT echo "test"
---
(source_file
(entrypoint_instruction
(shell_command
(shell_fragment))))
2021-05-09 22:11:30 -04:00
==================
Entrypoint Shell command multiline
2021-05-09 22:11:30 -04:00
==================
ENTRYPOINT echo "test" \
"foo" \
bar
---
(source_file
(entrypoint_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
==================
ENTRYPOINT []
---
(source_file
(entrypoint_instruction
(json_string_array)))
2021-05-09 22:11:30 -04:00
==================
Run with shell array
==================
ENTRYPOINT ["echo", "test"]
---
(source_file
(entrypoint_instruction
(json_string_array
(json_string)
(json_string))))