2020-07-17 13:03:07 +02:00
|
|
|
module util
|
|
|
|
|
2021-06-22 17:52:34 +02:00
|
|
|
import v.util.diff
|
2020-07-17 13:03:07 +02:00
|
|
|
|
|
|
|
// iterates through a list of known diff cli commands
|
|
|
|
// and returns it with basic options
|
|
|
|
pub fn find_working_diff_command() ?string {
|
2021-06-22 17:52:34 +02:00
|
|
|
return diff.find_working_diff_command()
|
2020-07-17 13:03:07 +02:00
|
|
|
}
|
|
|
|
|
2020-10-15 12:32:28 +02:00
|
|
|
pub fn color_compare_files(diff_cmd string, file1 string, file2 string) string {
|
2021-06-22 17:52:34 +02:00
|
|
|
return diff.color_compare_files(diff_cmd, file1, file2)
|
2020-07-17 13:03:07 +02:00
|
|
|
}
|
|
|
|
|
2021-04-05 21:57:53 +02:00
|
|
|
pub fn color_compare_strings(diff_cmd string, unique_prefix string, expected string, found string) string {
|
2021-06-22 17:52:34 +02:00
|
|
|
return diff.color_compare_strings(diff_cmd, unique_prefix, expected, found)
|
2020-07-17 13:03:07 +02:00
|
|
|
}
|