Env: configure urls and help documents
Change-Id: I9522e074575e0c1e67735462ac4cc266ab1ebb8c
diff --git a/core/installer/app.go b/core/installer/app.go
index 11ca8cd..1626a1a 100644
--- a/core/installer/app.go
+++ b/core/installer/app.go
@@ -339,6 +339,16 @@
public: string
private: string
}
+
+#HelpDocument: {
+ title: string
+ contents: string
+ children: [...#HelpDocument]
+}
+
+help: [...#HelpDocument] | *[]
+
+url: string | *""
`
type rendered struct {
@@ -347,8 +357,8 @@
Resources CueAppData
Ports []PortForward
Data CueAppData
+ URL string
Help []HelpDocument
- Url string
Icon string
}
@@ -633,7 +643,7 @@
if err != nil {
return rendered{}, err
}
- ret.Url = url
+ ret.URL = url
icon, err := res.LookupPath(cue.ParsePath("icon")).String()
if err != nil {
return rendered{}, err
@@ -680,8 +690,9 @@
Release: release,
Values: values,
Input: derived,
+ URL: ret.URL,
Help: ret.Help,
- Url: ret.Url,
+ Icon: ret.Icon,
},
}, nil
}
@@ -719,6 +730,8 @@
Release: release,
Values: values,
Input: values,
+ URL: ret.URL,
+ Help: ret.Help,
},
}, nil
}