Skip to content

Wishlist

Joris Roovers edited this page Aug 23, 2016 · 13 revisions
  • Check that input file is a valid yaml file

  • Code cleanup

  • Read file names from standard input

  • File input using @ syntax: inject multiple lines at once

  • Better examples/docs

  • Inline file editing

  • PyPi package

  • New line should be assumed on insertion

  • Each element should have a line_start and line_end associated with it, since some elements can be multiline strings, dictionaries or lists. This will allow printing and inserting into higher level constructs. The implementation to determine the line_end should just recursively iterate over all childeren and return the highest line number. Note that we will need to fix finding the endline for multiline string comments for this to fully work in each scenario.

  • new format string: type, returning string, list or dict

  • Subcommands (expected behavior)

    • insert: insert new line(s) into file
    • delete: delete an existing line from the file
    • replace: replace an existing line from the file
    • find: find a line in a file
      • support for finding in multiple files (similar to insert's support for multiple files)
    • check: check that line matches a given regex
  • Support for working with lines that contain references (e.g.: ship-to: *id001 in examples/sample1.yml).

  • Support for working with blocks (e.g. matching bill-to/address without further specification)

  • Parsing:

    • Support more scalar types (other than string): float, int, etc. This is useful for printing and doing things like find.
    • Support finding root: "/" or "/bill-to/address"
Clone this wiki locally