Commit graph

5 commits

Author SHA1 Message Date
Bill Niblock
4570ee37e6 sapling.rb: Multiple fixes
- Add logic for Planter, the editor module
- Add logic for catching a bad switch, and reporting accordingly
- Add logic for when no tree is included when required, and reporting
  accordingly
- Move YAML file loading from Dialogue/Gardner to here
2017-05-07 16:51:00 -04:00
Bill Niblock
36c9f0d3ca Abstract sapling modules into individual modules
- module gardner -> lib/sapling/gardner.rb
- module dialogue -> lib/sapling/dialogue.rb
- module planter -> lib/sapling/planter.rb

- remove duplicate code from lib/sapling.rb
2017-05-07 12:59:36 -04:00
Bill Niblock
c729916f9d Start using Yard
- Add yard to Gemfile
- Configure .yardopts to pull in proper files
- Update custom docs to include yard metadata
2017-05-06 17:34:19 -04:00
Bill Niblock
593b45ce14 lib/sapling.rb: Improve branch handling
- Show viable options in prompt.
- If a user does not select a viable option, inform them, and prompt again.
- Allow for terimnal branches. A terminal branch has no options. More details in
  the Configuration File documentation.
2017-05-06 14:38:53 -04:00
Bill Niblock
7a9a401fad sapling.rb: A dialogue tree utility 2017-05-06 03:57:28 -04:00