summaryrefslogtreecommitdiff
path: root/build/instructions.go
diff options
context:
space:
mode:
Diffstat (limited to 'build/instructions.go')
-rw-r--r--build/instructions.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/instructions.go b/build/instructions.go
index 5c12796..1b954a2 100644
--- a/build/instructions.go
+++ b/build/instructions.go
@@ -50,6 +50,15 @@ func (copy Copy) Compile() []string {
return append(quoteAll(copy.Sources), quote(copy.Destination))
}
+type CopyFrom struct {
+ From string
+ Copy
+}
+
+func (cf CopyFrom) Compile() []string {
+ return append([]string{cf.From}, cf.Copy.Compile()...)
+}
+
type Env struct {
Definitions map[string]string
}