Skip to content

Commit 4251b46

Browse files
authored
Merge pull request #490 from ccmtaylor/push-oxtnlkqslxwo
fix: use `list.Concat()` to concatenate lists
2 parents d15a3f9 + a3df88c commit 4251b46

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: examples/minimal/debug_tool.cue

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package main
22

33
import (
4+
"list"
45
"tool/cli"
56
"encoding/yaml"
67
"text/tabwriter"
78
)
89

9-
_resources: timoni.apply.app + timoni.apply.test
10+
_resources: list.Concat([timoni.apply.app, timoni.apply.test])
1011

1112
// The build command generates the Kubernetes manifests and prints the multi-docs YAML to stdout.
1213
// Example 'cue cmd -t debug -t name=test -t namespace=test -t mv=1.0.0 -t kv=1.28.0 build'.

Diff for: examples/redis/debug_tool.cue

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package main
22

33
import (
4+
"list"
45
"tool/cli"
56
"encoding/yaml"
67
"text/tabwriter"
78
)
89

9-
_resources: timoni.apply.master + timoni.apply.replica + timoni.apply.test
10+
_resources: list.Concat([timoni.apply.master, timoni.apply.replica, timoni.apply.test])
1011

1112
// The build command generates the Kubernetes manifests and prints the multi-docs YAML to stdout.
1213
// Example 'cue cmd -t debug -t name=redis -t namespace=test -t mv=1.0.0 -t kv=1.28.0 build'.

0 commit comments

Comments
 (0)