tree-sitter-dockerfile/test/corpus/add.txt
tvrinssen 1bf9daef46
Support heredocs (#45)
This adds support for heredocs in Dockerfiles. This required adding an external scanner to store the required state.

Co-authored-by: Camden Cheek <camden@ccheek.com>
2024-04-19 14:08:28 -06:00

56 lines
589 B
Plaintext

==================
No param
==================
ADD /src ./dst
---
(source_file
(add_instruction
(path)
(path)))
==================
With param
==================
ADD --chown=a:b /src ./dst
---
(source_file
(add_instruction
(param)
(path)
(path)))
==================
Multiple files
==================
ADD src1 src2 dst
---
(source_file
(add_instruction
(path)
(path)
(path)))
==================
Multiple params
==================
ADD --chown=a:b --chmod=644 src dst
---
(source_file
(add_instruction
(param)
(param)
(path)
(path)))