You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
file.txt target/: copies file.txt into the target/ directory
@my-context file.txt target/ copies file.txt from the context my-context (equivalent to fromContext) into the target/ directory
builder@builder file.txt target/ copies file.txt from the builder my-builder (equivalent to fromBuilder) into the target/ directory
image@my-image:tag file.txt target/ copies file.txt from the image my-image:tag (equivalent to fromImage) into the target/ directory
Ecological concerns
Since the context separator is the space, just like the files one, first split and then check the context regex on the first element, only if there is at least 3 elements.
This would avoid checking the regex when not needed and check it on a smaller string.
Let the image parsing from string by the image struct.
Is this task linked with any other ?
The text was updated successfully, but these errors were encountered:
What should be done
The copy manage a simplified string syntax, but it does not manage the
from
fields.Add the possibility to define the origin of the copy in string syntax.
Technical recommandation
Current syntax:
(path )+target
Desired syntax:
((builder|image)?@context-name )?(path )+target
This would let define the next values:
file.txt target/
: copiesfile.txt
into thetarget/
directory@my-context file.txt target/
copiesfile.txt
from the contextmy-context
(equivalent tofromContext
) into thetarget/
directorybuilder@builder file.txt target/
copiesfile.txt
from the buildermy-builder
(equivalent tofromBuilder
) into thetarget/
directoryimage@my-image:tag file.txt target/
copiesfile.txt
from the imagemy-image:tag
(equivalent tofromImage
) into thetarget/
directoryEcological concerns
Since the context separator is the space, just like the files one, first split and then check the context regex on the first element, only if there is at least 3 elements.
This would avoid checking the regex when not needed and check it on a smaller string.
Let the image parsing from string by the image struct.
Is this task linked with any other ?
The text was updated successfully, but these errors were encountered: