fmt: fix alignment of struct init fields (#22025)

This commit is contained in:
yuyi 2024-08-11 14:11:24 +08:00 committed by GitHub
parent 99da5726db
commit c51d30bf53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
671 changed files with 18817 additions and 18787 deletions

View file

@ -2,34 +2,34 @@ module cli
fn test_help_message() {
mut cmd := Command{
name: 'command'
name: 'command'
description: 'description'
commands: [
commands: [
Command{
name: 'sub'
name: 'sub'
description: 'subcommand'
},
Command{
name: 'sub2'
name: 'sub2'
description: 'another subcommand'
},
]
flags: [
Flag{
flag: .string
name: 'str'
flag: .string
name: 'str'
description: 'str flag'
},
Flag{
flag: .bool
name: 'bool'
flag: .bool
name: 'bool'
description: 'bool flag'
abbrev: 'b'
abbrev: 'b'
},
Flag{
flag: .string
name: 'required'
abbrev: 'r'
flag: .string
name: 'required'
abbrev: 'r'
required: true
},
]