Skip to content

Commit 8a4df5a

Browse files
committed
change default -pretty and -S indentation to 2 spaces
1 parent eafe66d commit 8a4df5a

File tree

21 files changed

+568
-568
lines changed

21 files changed

+568
-568
lines changed

cli/outputflags/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (f *Flags) setFlags(fs *flag.FlagSet) {
4848
fs.BoolVar(&f.color, "color", true, "enable/disable color formatting for -S and db text output")
4949
fs.StringVar(&f.supPersist, "persist", "",
5050
"regular expression to persist type definitions across the stream")
51-
fs.IntVar(&f.pretty, "pretty", 4,
51+
fs.IntVar(&f.pretty, "pretty", 2,
5252
"tab size to pretty print JSON and Super JSON output (0 for newline-delimited output")
5353
fs.StringVar(&f.outputFile, "o", "", "write data to output file")
5454
fs.StringVar(&f.split, "split", "",

cmd/super/db/manage/ztests/config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ outputs:
2121
- name: inherit.sup
2222
data: |
2323
{
24-
name: "test1",
25-
branch: "main"
24+
name: "test1",
25+
branch: "main"
2626
}
2727
{
28-
name: "test2",
29-
branch: "live"
28+
name: "test2",
29+
branch: "live"
3030
}
3131
- name: stderr
3232
data: ""

compiler/semantic/ztests/imdb.yaml

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -76,66 +76,66 @@ outputs:
7676
- name: stdout
7777
data: |
7878
{
79-
title: "Baby Driver",
80-
director: [
81-
"Edgar Wright"
82-
],
83-
writer: [
84-
"Edgar Wright"
85-
],
86-
genres: [
87-
"Action",
88-
"Crime",
89-
"Drama"
90-
],
91-
actors: [
92-
{
93-
name: "Ansel Elgort",
94-
characters: [
95-
"Baby"
96-
]
97-
},
98-
{
99-
name: "Jon Bernthal",
100-
characters: [
101-
"Griff"
102-
]
103-
},
104-
{
105-
name: "Jon Hamm",
106-
characters: [
107-
"Buddy"
108-
]
109-
},
110-
{
111-
name: "Micah Howard",
112-
characters: [
113-
"Barista"
114-
]
115-
},
116-
{
117-
name: "Morgan Brown",
118-
characters: [
119-
"Street Preacher"
120-
]
121-
},
122-
{
123-
name: "Kevin Spacey",
124-
characters: [
125-
"Doc"
126-
]
127-
},
128-
{
129-
name: "Morse Diggs",
130-
characters: [
131-
"Morse Diggs"
132-
]
133-
},
134-
{
135-
name: "CJ Jones",
136-
characters: [
137-
"Joseph"
138-
]
139-
}
140-
]
79+
title: "Baby Driver",
80+
director: [
81+
"Edgar Wright"
82+
],
83+
writer: [
84+
"Edgar Wright"
85+
],
86+
genres: [
87+
"Action",
88+
"Crime",
89+
"Drama"
90+
],
91+
actors: [
92+
{
93+
name: "Ansel Elgort",
94+
characters: [
95+
"Baby"
96+
]
97+
},
98+
{
99+
name: "Jon Bernthal",
100+
characters: [
101+
"Griff"
102+
]
103+
},
104+
{
105+
name: "Jon Hamm",
106+
characters: [
107+
"Buddy"
108+
]
109+
},
110+
{
111+
name: "Micah Howard",
112+
characters: [
113+
"Barista"
114+
]
115+
},
116+
{
117+
name: "Morgan Brown",
118+
characters: [
119+
"Street Preacher"
120+
]
121+
},
122+
{
123+
name: "Kevin Spacey",
124+
characters: [
125+
"Doc"
126+
]
127+
},
128+
{
129+
name: "Morse Diggs",
130+
characters: [
131+
"Morse Diggs"
132+
]
133+
},
134+
{
135+
name: "CJ Jones",
136+
characters: [
137+
"Joseph"
138+
]
139+
}
140+
]
141141
}

db/ztests/ls.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@ outputs:
1818
- name: stdout
1919
data: |
2020
{
21-
name: "logs",
22-
layout: {
23-
order: "desc"::=order.Which,
24-
keys: [
25-
[
26-
"ts"
27-
]::=field.Path
28-
]::=field.List
29-
}::=order.SortKey,
30-
seek_stride: 65536,
31-
threshold: 524288000
21+
name: "logs",
22+
layout: {
23+
order: "desc"::=order.Which,
24+
keys: [
25+
[
26+
"ts"
27+
]::=field.Path
28+
]::=field.List
29+
}::=order.SortKey,
30+
seek_stride: 65536,
31+
threshold: 524288000
3232
}
3333
===
3434
{
35-
min: 2020-04-21T22:40:30.06852324Z,
36-
max: 2020-04-22T01:23:40.0622373Z,
37-
count: 1000::uint64,
38-
size: 33493
35+
min: 2020-04-21T22:40:30.06852324Z,
36+
max: 2020-04-22T01:23:40.0622373Z,
37+
count: 1000::uint64,
38+
size: 33493
3939
}

db/ztests/meta.yaml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -25,42 +25,42 @@ outputs:
2525
- name: stdout
2626
data: |
2727
{
28-
name: "poolA",
29-
layout: {
30-
order: "asc"::=order.Which,
31-
keys: [
32-
[
33-
"a"
34-
]::=field.Path
35-
]::=field.List
36-
}::=order.SortKey,
37-
seek_stride: 65536,
38-
threshold: 524288000
28+
name: "poolA",
29+
layout: {
30+
order: "asc"::=order.Which,
31+
keys: [
32+
[
33+
"a"
34+
]::=field.Path
35+
]::=field.List
36+
}::=order.SortKey,
37+
seek_stride: 65536,
38+
threshold: 524288000
3939
}
4040
{
41-
name: "poolB",
42-
layout: {
43-
order: "desc"::=order.Which,
44-
keys: [
45-
[
46-
"b"
47-
]::=field.Path
48-
]::=field.List
49-
}::=order.SortKey,
50-
seek_stride: 65536,
51-
threshold: 524288000
41+
name: "poolB",
42+
layout: {
43+
order: "desc"::=order.Which,
44+
keys: [
45+
[
46+
"b"
47+
]::=field.Path
48+
]::=field.List
49+
}::=order.SortKey,
50+
seek_stride: 65536,
51+
threshold: 524288000
5252
}
5353
===
5454
{
55-
nameof: "data.Object",
56-
min: 1,
57-
max: 2,
58-
count: 2::uint64,
59-
size: 18
55+
nameof: "data.Object",
56+
min: 1,
57+
max: 2,
58+
count: 2::uint64,
59+
size: 18
6060
}
6161
{
62-
nameof: "db.BranchTip"
62+
nameof: "db.BranchTip"
6363
}
6464
{
65-
nameof: "Commit"
65+
nameof: "Commit"
6666
}

db/ztests/overlap.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ outputs:
1818
- name: stdout
1919
data: |
2020
{
21-
min: 2020-04-21T22:40:30.06852324Z,
22-
max: 2020-04-22T01:23:40.0622373Z,
23-
count: 500::uint64,
24-
size: 17073
21+
min: 2020-04-21T22:40:30.06852324Z,
22+
max: 2020-04-22T01:23:40.0622373Z,
23+
count: 500::uint64,
24+
size: 17073
2525
}
2626
{
27-
min: 2020-04-21T22:40:49.0635839Z,
28-
max: 2020-04-22T01:23:21.06632034Z,
29-
count: 500::uint64,
30-
size: 17039
27+
min: 2020-04-21T22:40:49.0635839Z,
28+
max: 2020-04-22T01:23:21.06632034Z,
29+
count: 500::uint64,
30+
size: 17039
3131
}

db/ztests/s3/stat.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ outputs:
1616
- name: stdout
1717
data: |
1818
{
19-
min: 2020-04-21T22:40:30.06852324Z,
20-
max: 2020-04-22T01:23:40.0622373Z,
21-
count: 1000::uint64,
22-
size: 33493
19+
min: 2020-04-21T22:40:30.06852324Z,
20+
max: 2020-04-22T01:23:40.0622373Z,
21+
count: 1000::uint64,
22+
size: 33493
2323
}

db/ztests/vector.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ outputs:
2424
- name: stdout
2525
data: |
2626
{
27-
min: null,
28-
max: null,
29-
count: 5::uint64,
30-
size: 72
27+
min: null,
28+
max: null,
29+
count: 5::uint64,
30+
size: 72
3131
}
3232
===
3333
===

runtime/sam/op/meta/ztests/partitions.yaml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -35,38 +35,38 @@ outputs:
3535
{k:13}
3636
===
3737
[
38-
{
39-
min: 1,
40-
max: 1
41-
}
38+
{
39+
min: 1,
40+
max: 1
41+
}
4242
]
4343
[
44-
{
45-
min: 2,
46-
max: 3
47-
}
44+
{
45+
min: 2,
46+
max: 3
47+
}
4848
]
4949
[
50-
{
51-
min: 4,
52-
max: 5
53-
}
50+
{
51+
min: 4,
52+
max: 5
53+
}
5454
]
5555
[
56-
{
57-
min: 6,
58-
max: 8
59-
},
60-
{
61-
min: 7,
62-
max: 12
63-
},
64-
{
65-
min: 9,
66-
max: 11
67-
},
68-
{
69-
min: 10,
70-
max: 13
71-
}
56+
{
57+
min: 6,
58+
max: 8
59+
},
60+
{
61+
min: 7,
62+
max: 12
63+
},
64+
{
65+
min: 9,
66+
max: 11
67+
},
68+
{
69+
min: 10,
70+
max: 13
71+
}
7272
]

0 commit comments

Comments
 (0)