skx / deployr

A simple golang application to automate the deployment of software releases.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use a real lexer.

skx opened this issue · comments

We should use a lexer & parser to process our input files.

There would be no functional change, but we'd be able to report upon errors (unknown commands, and bogus-arguments) when we read the recipe-file.

We can then also add tests for our parser, as at the moment we have zero tests.

See the (huge!) pull request in #3 which implements this. I'm now happy with the state of the change, as my recipes work. That said it is a breaking change:

  • Arguments must be quoted.
  • The way the application is launched has changed.

Closed in #3.