A .gitignore-inspired CLI tool for managing classification of files.
Add this line to your application's Gemfile:
gem "classy", github: "ltk/classy"
And then execute:
$ bundle
$ bundle binstubs classy
By default, Classy considers all files to be classified
. You can indicate that certain files are unclassified
via rules defined in .unclassified
files.
.unclassified
files work the same way as .gitignore
files. They can exist at any level in a directory tree. If a file matches a rule within your .unclassified
file, it will be considered unclassified
.
A CLI tool is provided as a binstub named cls
. To execute it, run bin/cls
.
Lists all unclassified
file paths in your directory. Similar to git ls-files
.
e.g. bin/cls ls
Returns the classification of the specified file.
e.g. bin/cls test README.md