yaml2outline(1) - Linux man page

Name

yaml2outline - Convert a YAML outline into a standard one

Usage

yaml2outline outline.yaml > outline.txt

Description

This program converts a YAML file that conforms to a particular outline format, into a standard looking outline. It is really just a proof of concept, and not intended for any serious purpose.

Example:

---
- Intro
- Part 1:
   - Life
   - Love:
      - True Love:
         - Mexican Cuisine
         - Perl
      - Love at First Sight
   - Pursuit of YAML
- Part 2:
   - Scissors:
      - Sewing
      - Hair
   - Paper
   - Rock:
      - Granite
      - Pixies
- Part3:
   - Perl
   - Python
   - Ruby
- Conclusion
yields:
I) Intro

II) Part 1
   A) Life
   B) Love
       1) True Love
           i) Mexican Cuisine
           ii) Perl
       2) Love at First Sight
   C) Pursuit of YAML

III) Part 2
   A) Scissors
       1) Sewing
       2) Hair
   B) Paper
   C) Rock
       1) Granite
       2) Pixies

IV) Part3
   A) Perl
   B) Python
   C) Ruby

V) Conclusion

Author

Brian Ingerson <ingy@cpan.org>

Copyright

Copyright 2002, Brian Ingerson - All rights reserved

You may use this hack under the same terms as Perl itself.