Open tekumara opened 1 year ago
A work around whilst there's no fix is to provide an empty template and the explicit file names, which produces a warning but will work on the files in the hidden directory:
❯ comby -config comby-patch-teamcity.toml -matcher .txt -f .kts "" "" .teamcity/* -stats
WARNING: Templates specified on the command line AND using -templates. Ignoring match
and rewrite templates on the command line and only using those in directories.
....
{
"number_of_files": 1,
"lines_of_code": 285,
"number_of_matches": 0,
"total_time": 92.39006042480469
}
Thanks--looks like this conflicts with --exclude-dir
which by default excludes any directories starting with .
.
When a flag specifies -d
explicitly, I agree it should just work.
In the mean time you can probably use the workaround --exclude-dir "" -d .teamcity
(didn't check, but it should work)
Thanks for looking into this! When I try -exclude-dir ""
I get:
Error parsing command line:
failed to parse -exclude-dir value "".
(Failure "Command.Spec.Arg_type.comma_separated: empty list not allowed")
For usage information, run
comby -help
Describe the bug
When using templates and the current directory is a hidden directory (or the
-d
dir is hidden) comby ignores the files.Reproducing
Expected behavior
When using templates, and the current dir is a hidden directory, or a hidden directory is explicitly provided via
-d
then comby should work on this files.Additional context
comby 1.8.1