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

refactor: standardize exec_from funcs arg order #8809

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

tshauck
Copy link
Contributor

@tshauck tshauck commented Jan 10, 2024

Which issue does this PR close?

Closes #8808

Rationale for this change

For me the order of 'what does the execing, what's exec'd, then options` makes sense to me, but overally the goal of this PR is to make the order consistent.

Are these changes tested?

Manual testing of built CLI, open to other options

Are there any user-facing changes?

Not sure how many are using the CLI code in their own projects, but this could break their code (albeit with an easy fix).

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Nice cleanup -- thank you @tshauck

The amount of duplication in the cli is also somewhat of a problem in my mind (the output / printing logic has gotten a bit convoluted). It would be great to make that simpler too somehow

@alamb alamb merged commit e862539 into apache:main Jan 10, 2024
22 checks passed
@tshauck
Copy link
Contributor Author

tshauck commented Jan 10, 2024

Thanks, yeah, I agree. If a good approach comes to mind as I'm using it, I'll open another PR.

@tshauck tshauck deleted the make-arg-order-consistent branch January 10, 2024 19:29
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.

Minor refactor of exec_from_* functions in cli?
2 participants