Skip to content

Conversation

@zealsham
Copy link
Collaborator

Summary

This Pr adds the ability to save commandline arguement relevant to the config file into a config.toml file in the present directory if anyone exist or into the default xdg-compliant directory .

This pr close #896

@zealsham zealsham changed the title Add config saving to payjoin-cli Draft:Add config saving to payjoin-cli Aug 10, 2025
@coveralls
Copy link
Collaborator

coveralls commented Aug 10, 2025

Pull Request Test Coverage Report for Build 17533798681

Details

  • 2 of 60 (3.33%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.5%) to 85.416%

Changes Missing Coverage Covered Lines Changed/Added Lines %
payjoin-cli/src/main.rs 2 3 66.67%
payjoin-cli/src/app/config.rs 0 57 0.0%
Totals Coverage Status
Change from base Build 17504088813: -0.5%
Covered Lines: 8188
Relevant Lines: 9586

💛 - Coveralls

@spacebear21 spacebear21 marked this pull request as draft August 12, 2025 09:43
@zealsham zealsham changed the title Draft:Add config saving to payjoin-cli Add config saving to payjoin-cli Aug 13, 2025
@zealsham zealsham marked this pull request as ready for review August 13, 2025 00:22
@zealsham zealsham mentioned this pull request Aug 14, 2025
Copy link
Collaborator

@benalleng benalleng left a comment

Choose a reason for hiding this comment

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

Ok, so there have been some big changes since my first review after #957 I think it is safe to now use the latest toml version now 0.9.5 https://crates.io/crates/toml/0.9.5

As well I found that testing it was difficult to grok how it was supposed to be used perhaps a brief section in the payjoin-cli configuration readme section about this option would be helpful

This Pr adds the ability to save config files
for V2 to payjoin-cli . This is introduced
via a set-config commandline arg that only
works for v2 and when the right set of supporting
args is present .

fix poor merge conflict resolve

update payjoin-cli docs for --set-config
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.

payjoin-cli should have allow saving configs

3 participants