commander
commander copied to clipboard
dotfiles in test dir cause a panic
Prerequisites
- [X ] Can you reproduce the problem?
- [X ] Are you running the latest version?
- [X ] Did you perform a cursory search?
Description
Using latest release on macos, the --dir tests cause the binary to panic because a non-yaml file, .DS_Store, exists in the directory. This also happens if there's a .gitignore or .gitattributes file present.
Steps to Reproduce
- Create a testing dir
- add a non-yaml dotfile to the directory
- test using --dir
- observe the binary panic
Expected behavior: the binary should skip hidden files
Actual behavior: the binary does not skip hidden files, and panics
Specifications
- Version: 2.5.0
- Platform: All
thanks to @jscottsf for pointing out this bug to me