tree-sitter-dockerfile/corpus/run.txt
2022-10-25 19:48:10 -07:00

81 lines
1.1 KiB
Plaintext

==================
Shell command
==================
RUN echo "test"
---
(source_file
(run_instruction
(shell_command
(shell_fragment))))
==================
Shell command multiline
==================
RUN echo "test" \
"foo" \
bar
---
(source_file
(run_instruction
(shell_command
(shell_fragment)
(line_continuation)
(shell_fragment)
(line_continuation)
(shell_fragment))))
==================
Run with shell empty array
==================
run []
---
(source_file
(run_instruction
(string_array)))
==================
Run with shell array
==================
run ["echo", "test"]
---
(source_file
(run_instruction
(string_array
(double_quoted_string)
(double_quoted_string))))
==================
Run with options
==================
run --mount=type=secret,id=aws,target=/root/.aws/credentials \
--security=insecure \
aws s3 cp s3://example.com
---
(source_file
(run_instruction
(mount_param
(mount_param_param)
(mount_param_param)
(mount_param_param))
(line_continuation)
(param)
(line_continuation)
(shell_command
(shell_fragment))))