for tests
| 56 | var stdin = os.Stdin // for tests |
| 57 | |
| 58 | type ListConfig struct { |
| 59 | Files []string `help:"List of log-files, directories and/or list-files to process" default:"[\"-\"]"` |
| 60 | MatchPath string `help:"regexp to filter files in specified directories" default:".*\\.log\\.gz"` |
| 61 | Region string `help:"AWS Region for fetching from S3" default:"us-west-2"` |
| 62 | } |
| 63 | |
| 64 | func (cfg *ListConfig) fillDefaults() { |
| 65 | if cfg.MatchPath == "" { |
nothing calls this directly
no outgoing calls
no test coverage detected