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: expose cli functionality as a lib #109

Merged
merged 2 commits into from
Apr 25, 2023

Conversation

kayagokalp
Copy link
Member

closes #100.

In a recent tooling sync we talked about splitting lib functionality of forc-wallet into two parts:

  1. Exposing cli bindings
  2. Exposing all the functionality as pure functions (which does not require any CLI interaction)

This completes the first part, any forc-wallet command that is useable from CLI should also be useable consuming forc-wallet as lib with this PR.

@kayagokalp kayagokalp added enhancement New feature or request code quality labels Apr 24, 2023
@kayagokalp kayagokalp self-assigned this Apr 24, 2023
@kayagokalp
Copy link
Member Author

Waiting for #110.

@kayagokalp kayagokalp requested a review from a team April 24, 2023 17:15
@kayagokalp kayagokalp marked this pull request as ready for review April 24, 2023 17:15
@kayagokalp kayagokalp enabled auto-merge (squash) April 24, 2023 17:15
Copy link
Contributor

@mitchmindtree mitchmindtree left a comment

Choose a reason for hiding this comment

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

Nice one! utACK

Perhaps if we plan to expose more parts in a follow-up PR, it might make sense to do so alongside a draft PR at the Sway repo that introduces the forc-wallet crate as a dependency for the forc-client crate? I'm thinking this might help to more clearly guide what we actually need to expose.

@kayagokalp kayagokalp merged commit 599fd8d into master Apr 25, 2023
10 checks passed
@kayagokalp kayagokalp deleted the kayagokalp/forc-wallet-lib branch April 25, 2023 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose forc-wallet functionality as a library
2 participants