cue/format: some tweaks
Always keep tabs used for indentation and explicitly
expand. This fixes some alignment issues.
This also prepares for having better eval output.
The default for single-element objects without
position information is now to not simplify.
Change-Id: I47546bce433cf99e2fc153540591cea51841b24c
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/2165
Reviewed-by: Marcel van Lohuizen <mpvl@google.com>
diff --git a/internal/protobuf/testdata/client_config.proto.out.cue b/internal/protobuf/testdata/client_config.proto.out.cue
index 880309e..efa1f40 100644
--- a/internal/protobuf/testdata/client_config.proto.out.cue
+++ b/internal/protobuf/testdata/client_config.proto.out.cue
@@ -52,8 +52,8 @@
"FAIL_CLOSE"
NetworkFailPolicy_FailPolicy_value: {
- "FAIL_OPEN": 0
- "FAIL_CLOSE": 1
+ FAIL_OPEN: 0
+ FAIL_CLOSE: 1
}
// Defines the per-service client configuration.
diff --git a/internal/protobuf/testdata/gateway.proto.out.cue b/internal/protobuf/testdata/gateway.proto.out.cue
index 14e4624..dc17a26 100644
--- a/internal/protobuf/testdata/gateway.proto.out.cue
+++ b/internal/protobuf/testdata/gateway.proto.out.cue
@@ -213,8 +213,8 @@
// label search is restricted to the configuration namespace in which the
// the resource is present. In other words, the Gateway resource must
// reside in the same namespace as the gateway workload instance.
- selector <_>: string
- selector?: {<name>: name}
+ selector <_>: string
+ selector? <name>: name
}
// `Server` describes the properties of the proxy on a given load balancer
@@ -413,10 +413,10 @@
"AUTO_PASSTHROUGH"
Server_TLSOptions_TLSmode_value: {
- "PASSTHROUGH": 0
- "SIMPLE": 1
- "MUTUAL": 2
- "AUTO_PASSTHROUGH": 3
+ PASSTHROUGH: 0
+ SIMPLE: 1
+ MUTUAL: 2
+ AUTO_PASSTHROUGH: 3
}
// TLS protocol versions.
@@ -428,11 +428,11 @@
"TLSV1_3" // TLS version 1.3
Server_TLSOptions_TLSProtocol_value: {
- "TLS_AUTO": 0
- "TLSV1_0": 1
- "TLSV1_1": 2
- "TLSV1_2": 3
- "TLSV1_3": 4
+ TLS_AUTO: 0
+ TLSV1_0: 1
+ TLSV1_1: 2
+ TLSV1_2: 3
+ TLSV1_3: 4
}
// Port describes the properties of a specific port of a service.