aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/meson.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-26 16:20:16 +0900
committerOphestra <cat@gensokyo.uk>2026-03-26 16:23:15 +0900
commit2548a681e9a1e28c52805397edeccf719ec8ab45 (patch)
tree06202347c5762d8c1e05e4cc668829e633411d2c /internal/rosa/meson.go
parentd514d0679fcd947cd10f7ba9d0418855515c19d5 (diff)
internal/rosa: key-value type
This type is used very frequently. The new type is much easier to type and can receive helper methods eventually if needed. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/meson.go')
-rw-r--r--internal/rosa/meson.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/rosa/meson.go b/internal/rosa/meson.go
index ed8cde96..63b945ae 100644
--- a/internal/rosa/meson.go
+++ b/internal/rosa/meson.go
@@ -59,7 +59,7 @@ type MesonHelper struct {
Script string
// Flags passed to the setup command.
- Setup [][2]string
+ Setup []KV
// Whether to skip meson test.
SkipTest bool
}
@@ -113,7 +113,7 @@ meson test \
cd "$(mktemp -d)"
meson setup \
` + strings.Join(slices.Collect(func(yield func(string) bool) {
- for _, v := range append([][2]string{
+ for _, v := range append([]KV{
{"prefix", "/system"},
{"buildtype", "release"},
}, attr.Setup...) {