Notes: Switch from JSON in header to YAML
Interestingly, I'm backwards compatible as it seems. The JSON can be parsed by the YamlParser still... nice!
This commit is contained in:
parent
55f06d656b
commit
565b375e9f
1 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ use module::Module;
|
||||||
use runtime::Runtime;
|
use runtime::Runtime;
|
||||||
use storage::file::File;
|
use storage::file::File;
|
||||||
use storage::parser::Parser;
|
use storage::parser::Parser;
|
||||||
use storage::json::parser::JsonHeaderParser;
|
use storage::yaml::parser::YamlHeaderParser;
|
||||||
use module::helpers::cli::create_tag_filter;
|
use module::helpers::cli::create_tag_filter;
|
||||||
use module::helpers::cli::create_hash_filter;
|
use module::helpers::cli::create_hash_filter;
|
||||||
use module::helpers::cli::create_text_header_field_grep_filter;
|
use module::helpers::cli::create_text_header_field_grep_filter;
|
||||||
|
@ -21,7 +21,7 @@ use module::helpers::cli::CliFileFilter;
|
||||||
|
|
||||||
pub struct Notes<'a> {
|
pub struct Notes<'a> {
|
||||||
rt: &'a Runtime<'a>,
|
rt: &'a Runtime<'a>,
|
||||||
parser: Parser<JsonHeaderParser>,
|
parser: Parser<YamlHeaderParser>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Notes<'a> {
|
impl<'a> Notes<'a> {
|
||||||
|
@ -29,7 +29,7 @@ impl<'a> Notes<'a> {
|
||||||
pub fn new(rt: &'a Runtime<'a>) -> Notes<'a> {
|
pub fn new(rt: &'a Runtime<'a>) -> Notes<'a> {
|
||||||
Notes {
|
Notes {
|
||||||
rt: rt,
|
rt: rt,
|
||||||
parser: Parser::new(JsonHeaderParser::new(None)),
|
parser: Parser::new(YamlHeaderParser::new(None)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue