mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-01 14:14:52 +08:00
Adding recipes
This commit is contained in:
@@ -20,6 +20,7 @@ import (
|
||||
type expressionScenario struct {
|
||||
description string
|
||||
subdescription string
|
||||
explanation []string
|
||||
environmentVariables map[string]string
|
||||
document string
|
||||
document2 string
|
||||
@@ -256,6 +257,14 @@ func documentOperatorScenario(t *testing.T, w *bufio.Writer, i interface{}) {
|
||||
writeOrPanic(w, "will output\n")
|
||||
|
||||
documentOutput(t, w, s, formattedDoc, formattedDoc2)
|
||||
|
||||
if len(s.explanation) > 0 {
|
||||
writeOrPanic(w, "### Explanation:\n")
|
||||
for _, text := range s.explanation {
|
||||
writeOrPanic(w, fmt.Sprintf("- %v\n", text))
|
||||
}
|
||||
writeOrPanic(w, "\n")
|
||||
}
|
||||
}
|
||||
|
||||
func documentInput(w *bufio.Writer, s expressionScenario) (string, string) {
|
||||
|
||||
Reference in New Issue
Block a user