Commit Graph

10 Commits

Author SHA1 Message Date
Lucien Cartier-Tilet 071c8b0728
Made mod `utils` public 2020-04-05 15:48:41 +02:00
Lucien Cartier-Tilet 5f30c6d636
Reorganized modules, made rules a separate struct
Rules are now a separate struct, and the `rules` member of
`settings::Settings` is now a `Vec<settings::rule::Rule`.

Several elements were made private, now can be accessed through
dedicated methods
2020-04-04 22:44:08 +02:00
Lucien Cartier-Tilet ef8c02fc97
Good progress with applying rules, room for improvement
Rules are applied, however some bugs remain:
- The HashMap for rules should be replaced by a Vec so they can be
  stored in order and not randomly
- For some reasons, the `%` is not removed from some rules in the
  private function `update_rules` in the `Settings` struct.
- Make it so replacements between square brackets work correctly
2020-04-04 15:46:29 +02:00
Lucien Cartier-Tilet c418323b5c
Removed unused `use`s 2020-03-29 03:06:46 +02:00
Lucien Cartier-Tilet c6baa46aca
Removed `import_input`
This should be left to the client crate, `settings::utils::read_file`
is already here for that
2020-03-28 22:38:28 +01:00
Lucien Cartier-Tilet e9a161f526
Updated `import_input` signature, documentation 2020-03-28 21:58:27 +01:00
Lucien Cartier-Tilet 488ceba1bb
Added some doc and tests 2020-03-27 19:08:47 +01:00
Lucien Cartier-Tilet 2e0c16e97c
Added functions to import and export settings and refactoring 2020-03-27 18:25:20 +01:00
Lucien Cartier-Tilet ff95cb05eb
Added some basic code
Added basic settings representation and a way to load them from either
a YAML or Json file.
2020-03-26 20:10:07 +01:00
Lucien Cartier-Tilet 47100b3476
initial commit 2020-03-26 17:04:23 +01:00