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

Add fn for running the root cli command #337

Merged
merged 2 commits into from
Dec 18, 2023
Merged

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Dec 18, 2023

What

Add fn for running the root cli command.

Why

For embedding into the soroban-cli. The best way to embed the XDR CLI is to reuse the type structures, which we can do, however the internals of the Root command are private and so there's no way to use the XDR CLI Root once parsing by clap is complete.

We could do two things, expose the fields as public, or expose the run behavior that already exists in this lib. Given the goal is to replicate behavior, exposing the existing run function seemed like the appropriate way to solve this problem.

Close stellar/stellar-cli#1018

Releasing

This change is intended for releasing as a patch release then propagating through the env and sdk repos such that the following change could be released:

Even though this change is intended as a patch release this repo has no changes existing or planned on main and since the last release and so this change is targeting main and the patch release will be made from there.

@leighmcculloch leighmcculloch added this pull request to the merge queue Dec 18, 2023
Merged via the queue into main with commit 1eb24c2 Dec 18, 2023
7 checks passed
@leighmcculloch leighmcculloch deleted the soroban-tools/i1018 branch December 18, 2023 20:44
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.

soroban-cli: replace lab xdr subcommand with embedding the stellar-xdr cli
2 participants