Skip to content

feat: move NoOpCliktCommand from clikt-mordant to clikt module #526

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

Merged
merged 2 commits into from
Jul 9, 2024
Merged

feat: move NoOpCliktCommand from clikt-mordant to clikt module #526

merged 2 commits into from
Jul 9, 2024

Conversation

EchoEllet
Copy link
Contributor

@EchoEllet EchoEllet commented Jul 7, 2024

Move NoOpCliktCommand class from clikt-mordant to clikt module to allow use it for both

I'm uncertain if there is a reason why this class is in the clikt-mordant module though it seems that the class NoOpCliktCommand does not use any Mordant-specific implementation, moving it to the clikt module to allow the use of it when using clikt-core without a breaking change. This should work for both clikt and clikt-mordant.

We might need to update the docs in case something got outdated, or if there is not, we might want to consider documenting this change.

@ajalt
Copy link
Owner

ajalt commented Jul 8, 2024

Good catch! Since this changes the public API, can you run ./gradlew apiDump to update the api files in order for tests to pass?

@EchoEllet
Copy link
Contributor Author

EchoEllet commented Jul 8, 2024

The task apiDump has been executed, should we update the relevant docs?

@ajalt
Copy link
Owner

ajalt commented Jul 8, 2024

Thanks! None of the docs mention which module it belongs to, so I don't thing anything needs to change there.

Since the core module hasn't been released yet, we don't need to make a changelog entry.

@ajalt ajalt merged commit 4f0bc3c into ajalt:master Jul 9, 2024
4 checks passed
@EchoEllet EchoEllet deleted the refactor/move-no-op-clikt-command-class branch July 9, 2024 09:57
@ajalt ajalt mentioned this pull request Jul 14, 2024
ajalt added a commit that referenced this pull request Jul 14, 2024
#526 Made the `NoOpCliktCommand` available in `core`, and this PR
follows up by renaming it to match the other core commands and making a
separate command that uses mordant.

While it is a bit annoying to need separate copies of all the commands
just to install mordant, I don't know of a better solution that works an
all multiplatform targets.
@EchoEllet
Copy link
Contributor Author

EchoEllet commented Jul 14, 2024

Thank you for merging this PR as well for maintaining the project.

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.

2 participants