mirror of
https://github.com/numtide/treefmt.git
synced 2024-08-16 20:30:25 +03:00
This commit is contained in:
parent
088479eb27
commit
0511e9acf1
@ -16,8 +16,8 @@ type Format struct {
|
|||||||
ConfigFile string `type:"path" help:"Load the config file from the given path (defaults to searching upwards for treefmt.toml)."`
|
ConfigFile string `type:"path" help:"Load the config file from the given path (defaults to searching upwards for treefmt.toml)."`
|
||||||
FailOnChange bool `help:"Exit with error if any changes were made. Useful for CI."`
|
FailOnChange bool `help:"Exit with error if any changes were made. Useful for CI."`
|
||||||
Formatters []string `short:"f" help:"Specify formatters to apply. Defaults to all formatters."`
|
Formatters []string `short:"f" help:"Specify formatters to apply. Defaults to all formatters."`
|
||||||
TreeRoot string `type:"path" help:"The root directory from which treefmt will start walking the filesystem (defaults to the directory containing the config file)."`
|
TreeRoot string `type:"existingdir" xor:"tree-root" help:"The root directory from which treefmt will start walking the filesystem (defaults to the directory containing the config file)."`
|
||||||
TreeRootFile string `type:"path" help:"File to search for to find the project root (if --tree-root is not passed)."`
|
TreeRootFile string `type:"path" xor:"tree-root" help:"File to search for to find the project root (if --tree-root is not passed)."`
|
||||||
Walk walk.Type `enum:"auto,git,filesystem" default:"auto" help:"The method used to traverse the files within --tree-root. Currently supports 'auto', 'git' or 'filesystem'."`
|
Walk walk.Type `enum:"auto,git,filesystem" default:"auto" help:"The method used to traverse the files within --tree-root. Currently supports 'auto', 'git' or 'filesystem'."`
|
||||||
Verbosity int `name:"verbose" short:"v" type:"counter" default:"0" env:"LOG_LEVEL" help:"Set the verbosity of logs e.g. -vv."`
|
Verbosity int `name:"verbose" short:"v" type:"counter" default:"0" env:"LOG_LEVEL" help:"Set the verbosity of logs e.g. -vv."`
|
||||||
Version bool `name:"version" short:"V" help:"Print version."`
|
Version bool `name:"version" short:"V" help:"Print version."`
|
||||||
|
Loading…
Reference in New Issue
Block a user