Skip to content

Commit

Permalink
Merge pull request #45 from jjcomer/api-testing
Browse files Browse the repository at this point in the history
Add embedded db caching
  • Loading branch information
jjcomer authored Apr 24, 2020
2 parents 3ea5d45 + 9724813 commit 93e13b3
Show file tree
Hide file tree
Showing 8 changed files with 243 additions and 68 deletions.
111 changes: 80 additions & 31 deletions Cargo.lock

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

11 changes: 8 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ doc = false

[package]
name = 'hogan'
version = '0.7.4'
version = '0.8.0'
authors = [
'Jonathan Morley <jmorley@cvent.com>',
'Josh Comer <jcomer@cvent.com>',
Expand All @@ -14,14 +14,14 @@ edition = '2018'

[dependencies]
failure = '0.1'
lru_time_cache = '0.10.0'
lru_time_cache = '0.10'
handlebars = '3'
itertools = '0.9'
json-patch = '0.2'
log = '0.4'
serde_derive = '1'
serde_json = '1'
shellexpand = '2.0.0'
shellexpand = '2.0'
stderrlog = '0.4'
structopt = '0.3'
tempfile = '3'
Expand All @@ -34,6 +34,11 @@ actix-rt = '1'
actix-service = '1'
futures = '0.3'
parking_lot = '0.10'
bincode = '1.2.1'

[dependencies.rusqlite]
version = '0.22'
features = ['bundled']

[dependencies.git2]
version = '0.13'
Expand Down
3 changes: 0 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,8 @@ install:
test_script:
# we don't run the "test phase" when doing deploys
- if [%APPVEYOR_REPO_TAG%]==[false] (
cargo build --target %TARGET% &&
cargo build --target %TARGET% --release &&
cargo test --target %TARGET% &&
cargo test --target %TARGET% --release &&
cargo run --target %TARGET% -- --help &&
cargo run --target %TARGET% --release -- --help
)

Expand Down
5 changes: 5 additions & 0 deletions src/app/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ pub enum AppCommand {
value_name = "PATTERN"
)]
environment_pattern: String,

///Filepath to the embedded db for storing environments. Will be created if it doesn't exist. If not provided a
/// random temp directory will be created
#[structopt(long = "db", value_name = "PATH", default_value = "hogan.db")]
db_path: String,
},
}

Expand Down
Loading

0 comments on commit 93e13b3

Please sign in to comment.