Project

compath

0.01
No commit activity in last 3 years
No release in over 3 years
Compath generates a guide of directory structure in the project
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
>= 0
~> 10.0
~> 3.0
 Project Readme

Compath

Compath generates a guide of directory structure in the project.

Installation

$ gem install compath

Usage

$ compath

It creates or updates .compath.yml.

---
bin/:
exe/:
lib/**/*:
spec/:

...

The top level object of yaml is mapping. Each key of objects means path, and each value of objects means description. Additional convention of configuration is that the path (key) which is end with **/* or * tells Compath to stop scanning of children of the directory.

Initial generated config has keys of only top level paths. With the following changes of .compath.yml, compath will also scan files of lib/ directory.

---
bin/:
exe/:
lib/:   # Removed `**/*`
spec/:

...

It will be updated to the following content by running compath.

---
bin/:
exe/:
lib/:
lib/compath/:
spec/:

...

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/meganemura/compath.

License

The gem is available as open source under the terms of the MIT License.