Skip to content

Commit

Permalink
fix: quote-wrapped configs on CLI (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmiller609 authored Mar 8, 2024
1 parent efdcfd5 commit a897a5b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tembo-cli/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 tembo-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
workspace = { members = ["temboclient", "tembodataclient"] }
[package]
name = "tembo-cli"
version = "0.20.0"
version = "0.20.1"
edition = "2021"
authors = ["Tembo.io"]
description = "The CLI for Tembo"
Expand Down
3 changes: 2 additions & 1 deletion tembo-cli/src/cmd/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,8 @@ fn get_postgres_config(
}
_ => {
if value.is_str() {
let _ = writeln!(postgres_config, "{} = '{value}'", key.as_str());
let val = value.as_str().unwrap();
let _ = writeln!(postgres_config, "{} = '{val}'", key.as_str());
}
if value.is_table() {
for row in value.as_table().iter() {
Expand Down
2 changes: 1 addition & 1 deletion tembo-cli/tests/integration_tests_docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ pub fn replace_vars_in_file(
let mut data = String::new();
src.read_to_string(&mut data)?;
drop(src);
let new_data = data.replace(&*word_from, &*word_to);
let new_data = data.replace(word_from, word_to);
let mut dst = File::create(&file_path)?;
dst.write(new_data.as_bytes())?;
Ok(())
Expand Down

0 comments on commit a897a5b

Please sign in to comment.