Skip to content

refactor: standardize exec_from funcs arg order - #8809

Merged
alamb merged 1 commit into
apache:mainfrom
tshauck:make-arg-order-consistent
Jan 10, 2024
Merged

alamb merged 1 commit into
apache:mainfrom
tshauck:make-arg-order-consistent

Conversation

@tshauck

@tshauck tshauck commented Jan 10, 2024

Copy link
Copy Markdown
Contributor

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).

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

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
@tshauck

tshauck commented Jan 10, 2024

Copy link
Copy Markdown
Contributor Author

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