Skip to content

Commit e25af26

Browse files
committed
Update README for v0.3.0
Also add all the new flags from v0.2.0 to now in the debug printout.
1 parent c545f18 commit e25af26

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,18 @@ Usage of uformat:
2424
Instead of formatting, print the difference. This acts as a universal dry-run.
2525
-directory string
2626
Target directory to format. (default ".")
27+
-file string
28+
Instead of formatting a directory, format the specified file.
2729
-ignore-git
2830
Ignore git and all related functions, such as checking gitignore.
2931
-list
3032
List available formats in the loaded configuration file.
33+
-module string
34+
Format using only the specified module.
35+
-show
36+
List the files formatted using their relative path.
37+
-show-abs
38+
List the files formatted using their absolute path. Overrides -show.
3139
-v Print logs tagged "Info" or higher.
3240
-version
3341
Print the version and exit.

cmd/uformat/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func main() {
9595
log.Fatal("could not resolve target_dir")
9696
}
9797

98-
slog.Debug("flags parsed", "config_location", config_location, "resolved_config_location", resolve_conf_location, "target_dir", target_dir, "show_formats", show_formats, "ignore_git", ignore_git)
98+
slog.Debug("flags parsed", "config_location", config_location, "resolved_config_location", resolve_conf_location, "target_dir", target_dir, "show_formats", show_formats, "ignore_git", ignore_git, "diff_mode", diff_mode, "show_files", show_files, "show_abs", show_abs, "single_file", single_file, "format_module", format_module)
9999

100100
config, err := configloader.LoadConfig(resolve_conf_location)
101101
if err != nil {

0 commit comments

Comments
 (0)