Skip to content

Commit

Permalink
ci: add basic CI (#3)
Browse files Browse the repository at this point in the history
* docs: rename sample
* docs: add logos
* test: fix and add several new tests and examples
* ci: add release CI
* ci: add Homebrew formula and template
* ci: add publishing of the debian package
* ci: add tera itself to the ci
* ci: add template for the changelog
  • Loading branch information
chevdor committed Jun 17, 2021
1 parent 393f867 commit f3216ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["chevdor <chevdor@gmail.com>"]
edition = "2018"
name = "tera-cli"
version = "0.1.0"
version = "0.1.1"
description = "A command line utility written in Rust to render templates from json|toml|yaml && ENV, using the tera templating engine"
readme = "README.md"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/wrapped_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl WrappedContext {
pub fn append_json(&mut self, str: &str) {
debug!("Appending json");
let json = str.parse::<serde_json::Value>().expect("Parse json");
let object = json.as_object().unwrap();
let object = json.as_object().expect("Json object expected");

for (k, v) in object.iter() {
self.handle_collision("json", k, v);
Expand Down

0 comments on commit f3216ec

Please sign in to comment.