mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
fmt: fix alignment of struct init fields (#22025)
This commit is contained in:
parent
99da5726db
commit
c51d30bf53
671 changed files with 18817 additions and 18787 deletions
|
@ -162,9 +162,9 @@ fn main() {
|
|||
|
||||
// Collect tool options
|
||||
mut opt := Options{
|
||||
verbose: fp.bool('verbose', `v`, false, "Be verbose about the tool's progress.")
|
||||
verbose: fp.bool('verbose', `v`, false, "Be verbose about the tool's progress.")
|
||||
compare_only: fp.bool('compare-only', `c`, false, "Don't generate screenshots - only compare input directories")
|
||||
root_path: fp.string('root-path', `r`, v_root, 'Root path of the comparison')
|
||||
root_path: fp.string('root-path', `r`, v_root, 'Root path of the comparison')
|
||||
}
|
||||
|
||||
toml_conf := fp.string('toml-config', `t`, default_toml, 'Path or string with TOML configuration')
|
||||
|
@ -446,7 +446,7 @@ fn new_config(root_path string, toml_config string) !Config {
|
|||
compare_flags := doc.value('compare.flags').default_to(empty_toml_array).array().as_strings()
|
||||
default_compare := CompareOptions{
|
||||
method: compare_method
|
||||
flags: compare_flags
|
||||
flags: compare_flags
|
||||
}
|
||||
capture_method := doc.value('capture.method').default_to('gg_record').string()
|
||||
capture_flags := doc.value('capture.flags').default_to(empty_toml_array).array().as_strings()
|
||||
|
@ -454,9 +454,9 @@ fn new_config(root_path string, toml_config string) !Config {
|
|||
mut capture_regions := []CaptureRegion{}
|
||||
for capture_region_any in capture_regions_any {
|
||||
region := CaptureRegion{
|
||||
x: capture_region_any.value('x').default_to(0).int()
|
||||
y: capture_region_any.value('y').default_to(0).int()
|
||||
width: capture_region_any.value('width').default_to(0).int()
|
||||
x: capture_region_any.value('x').default_to(0).int()
|
||||
y: capture_region_any.value('y').default_to(0).int()
|
||||
width: capture_region_any.value('width').default_to(0).int()
|
||||
height: capture_region_any.value('height').default_to(0).int()
|
||||
}
|
||||
capture_regions << region
|
||||
|
@ -468,11 +468,11 @@ fn new_config(root_path string, toml_config string) !Config {
|
|||
env_map[k] = v.string()
|
||||
}
|
||||
default_capture := CaptureOptions{
|
||||
method: capture_method
|
||||
method: capture_method
|
||||
wait_ms: capture_wait_ms
|
||||
flags: capture_flags
|
||||
flags: capture_flags
|
||||
regions: capture_regions
|
||||
env: env_map
|
||||
env: env_map
|
||||
}
|
||||
|
||||
apps_any := doc.value('apps').default_to(empty_toml_array).array()
|
||||
|
@ -503,9 +503,9 @@ fn new_config(root_path string, toml_config string) !Config {
|
|||
mut app_capture_regions := []CaptureRegion{}
|
||||
for capture_region_any in app_capture_regions_any {
|
||||
region := CaptureRegion{
|
||||
x: capture_region_any.value('x').default_to(0).int()
|
||||
y: capture_region_any.value('y').default_to(0).int()
|
||||
width: capture_region_any.value('width').default_to(0).int()
|
||||
x: capture_region_any.value('x').default_to(0).int()
|
||||
y: capture_region_any.value('y').default_to(0).int()
|
||||
width: capture_region_any.value('width').default_to(0).int()
|
||||
height: capture_region_any.value('height').default_to(0).int()
|
||||
}
|
||||
app_capture_regions << region
|
||||
|
@ -536,9 +536,9 @@ fn new_config(root_path string, toml_config string) !Config {
|
|||
merged_capture.validate()!
|
||||
|
||||
app_config := AppConfig{
|
||||
compare: merged_compare
|
||||
capture: merged_capture
|
||||
path: rel_path
|
||||
compare: merged_compare
|
||||
capture: merged_capture
|
||||
path: rel_path
|
||||
abs_path: os.join_path(path, rel_path).trim_right('/')
|
||||
}
|
||||
apps << app_config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue