mirror of
https://github.com/apple/pkl.git
synced 2026-05-25 16:19:20 +02:00
Implement canonical formatter (#1107)
CLI commands also added: `pkl format check` and `pkl format apply`.
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
foo: Listing<Int> = new { 1; 2; 3; 4; 5; 6; 7 }
|
||||
|
||||
bar: Listing<Int> = new {
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
}
|
||||
|
||||
lineIsTooBig: Listing<Int> = new {
|
||||
999999
|
||||
1000000
|
||||
1000001
|
||||
1000002
|
||||
1000003
|
||||
1000004
|
||||
1000005
|
||||
1000006
|
||||
1000007
|
||||
1000008
|
||||
1000009
|
||||
}
|
||||
|
||||
lineIsTooBig2 {
|
||||
999999
|
||||
1000000
|
||||
1000001
|
||||
1000002
|
||||
1000003
|
||||
1000004
|
||||
1000005
|
||||
1000006
|
||||
1000007
|
||||
1000008
|
||||
1000009
|
||||
1000010
|
||||
}
|
||||
|
||||
baz = new Dynamic {
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
|
||||
["foo"] = 3
|
||||
bar = 30
|
||||
|
||||
baz = true
|
||||
}
|
||||
|
||||
qux = new Dynamic { 1; 2; 3; prop = "prop"; [0] = 9 }
|
||||
Reference in New Issue
Block a user