Skip to content

Commit

Permalink
feat: write with abs path (#50)
Browse files Browse the repository at this point in the history
* feat: fix bash

* feat: write with abs path
  • Loading branch information
zifeo authored Oct 2, 2023
1 parent 60b146b commit 44cdd9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
F4: file://$HOME/Documents/github/lade/examples/sources/config.yaml?query=.format
F5: file://Cargo.toml?query=.package.version

^cat a.yml:
^ls:
.: a.yaml
A1: "1"

Expand Down
4 changes: 3 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ impl Config {
path: PathBuf,
rule: LadeRule,
) -> Result<(Output, HashMap<String, String>)> {
hydrate(rule.secrets, path).await.map(|x| (rule.output, x))
hydrate(rule.secrets, path.clone())
.await
.map(|x| (rule.output.map(|subpath| path.clone().join(subpath)), x))
}

pub async fn collect_hydrate(
Expand Down

0 comments on commit 44cdd9c

Please sign in to comment.