Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] variables context #149

Merged
merged 2 commits into from
Mar 15, 2022
Merged

[feat] variables context #149

merged 2 commits into from
Mar 15, 2022

Conversation

icepuma
Copy link
Member

@icepuma icepuma commented Mar 15, 2022

  • variables are added via "Comtrya.yaml":

    variables:
      fkbr: "sxoe"
      kuci: "xhpv"

    which yields

    DEBUG context="variables" key="fkbr" value="sxoe"
    DEBUG context="variables" key="kuci" value="xhpv"

- variables are added via "Comtrya.yaml":
  ```yaml
  variables:
    fkbr: "sxoe"
    kuci: "xhpv"
  ```

  which yields

  ```bash
  DEBUG context="variables" key="fkbr" value="sxoe"
  DEBUG context="variables" key="kuci" value="xhpv"
  ```
@icepuma
Copy link
Member Author

icepuma commented Mar 15, 2022

Resolves #10.

@icepuma
Copy link
Member Author

icepuma commented Mar 15, 2022

Yeah. I rebased on "upstream" and now everything is broken. I fix it

- sidequest: fix clippy warnings
@rawkode
Copy link
Member

rawkode commented Mar 15, 2022

@icepuma Oh, sorry about that - I merged some file.link changes that interfere'd with this.

@icepuma
Copy link
Member Author

icepuma commented Mar 15, 2022

Already fixed the failing tests and some clippy warnings :)

assert_eq!(variables_context_values.is_some(), true);
assert_eq!(
variables_context_values.unwrap().get("ship_name").unwrap(),
"Jack O'Neill"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤣

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't lie when I said that I would clutter the codebase with SG-1 references :D

@rawkode
Copy link
Member

rawkode commented Mar 15, 2022

Assuming the tests pass, this is good to go. Great effort, @icepuma

@codecov-commenter
Copy link

Codecov Report

Merging #149 (0b72675) into main (15d29ba) will increase coverage by 4.02%.
The diff coverage is 93.54%.

@@            Coverage Diff             @@
##             main     #149      +/-   ##
==========================================
+ Coverage   48.15%   52.17%   +4.02%     
==========================================
  Files          46       47       +1     
  Lines        1838     1748      -90     
==========================================
+ Hits          885      912      +27     
+ Misses        953      836     -117     
Impacted Files Coverage Δ
src/actions/directory/copy.rs 33.33% <ø> (ø)
src/actions/directory/mod.rs 0.00% <ø> (ø)
src/config/mod.rs 0.00% <ø> (ø)
src/main.rs 0.00% <0.00%> (ø)
src/contexts/variables.rs 87.50% <87.50%> (ø)
src/actions/file/link.rs 92.92% <100.00%> (+1.09%) ⬆️
src/contexts/mod.rs 80.35% <100.00%> (+7.85%) ⬆️
src/actions/package/providers/yay.rs 0.00% <0.00%> (ø)
src/actions/package/providers/bsdpkg.rs 0.00% <0.00%> (ø)
... and 25 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 15d29ba...0b72675. Read the comment docs.

@rawkode rawkode merged commit 3a8e7e7 into comtrya:main Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants