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

Update dependency com.github.ajalt.clikt:clikt from 4.4.0 to 5.0.0 (major v5) #380

Merged
merged 15 commits into from
Sep 29, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 16, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.github.ajalt.clikt:clikt 4.4.0 -> 5.0.0 age adoption passing confidence

Release Notes

ajalt/clikt (com.github.ajalt.clikt:clikt)

v5.0.0

Compare Source

Added
  • Publish iosArm64 and iosX64 targets.
  • Added NoSuchArgument exception that is thrown when too many arguments were given on the command line. Previously, a less specific UsageError was thrown instead.
  • Added CommandLineParser.tokenize that splits a string into argv tokens.
  • Added CommandLineParser that provides functions for parsing and finalizing commands manually for more control.
  • Added Context.invokedSubcommands that contains all subcommands of the current command that are going to be invoked when allowMultipleSubcommands is true.
  • Added SuspendingCliktCommand that has a suspend fun run method, allowing you to use coroutines in your commands.
  • Added ChainedCliktCommand that allows you to return a value from your run method and pass it to the next command in the chain.
  • Added Context.data as an alternative to obj that allows you to store more than one object in the context.
  • Added Context.echoer to customize how echo messages are printed.
  • Added CompletionGenerator to manually generate completions for a command.
  • Added Context.exitProcess which you can use to prevent the process from exiting during tests.
  • Added core module that supports watchOS, tvOS, and wasmWasi targets and has no dependencies.
  • Added more options to CliktCommand.test to control the terminal interactivity. (#​517)
  • Added associate{}, associateBy{}, and associateWith{} transforms for options that allow you to convert the keys and values of the map. (#​529)
  • Added support for aliasing options to other options. (#​535)
  • Added limit and ignoreCase parameters to option().split(). (#​541)
  • Support calling --help on subcommands when parents have required parameters.
Changed
  • In a subcommand with and an argument() with multiple() or optional(), the behavior is now the same regardless of the value of allowMultipleSubcommands: if a token matches a subcommand name, it's now treated as a subcommand rather than a positional argument.

  • Due to changes to the internal parsing algorithm, the exact details of error messages when multiple usage errors occur have changed in some cases.

  • Breaking Change: Moved the following parameters from CliktCommand's constructor; override the corresponding properties instead:

    removed parameter replacement property
    help fun help
    epilog fun helpEpilog
    invokeWithoutSubcommand val invokeWithoutSubcommand
    printHelpOnEmptyArgs val printHelpOnEmptyArgs
    helpTags val helpTags
    autoCompleteEnvvar val autoCompleteEnvvar
    allowMultipleSubcommands val allowMultipleSubcommands
    treatUnknownOptionsAsArgs val treatUnknownOptionsAsArgs
    hidden val hiddenFromHelp
  • The following methods on CliktCommand have been renamed: commandHelp -> help, commandHelpEpilog -> epilog. The old names are deprecated.

  • Breaking Change: CliktCommand.main and CliktCommand.parse are now extension functions rather than methods.

  • Breaking Change: Context.obj and Context.terminal, and OptionTransformContext.terminal are now extension functions rather than properties.

  • Breaking Change: The RenderedSection and DefinitionRow classes have moved to AbstractHelpFormatter.

  • Markdown support in the help formatter is no longer included by default. To enable it, include the :clikt-markdown dependency and call yourCommand.installMordantMarkdown() before parsing.

  • Updated Kotlin to 2.0.0

Fixed
  • Fixed excess arguments not being reported when allowMultipleSubcommands=true and a subcommand has excess arguments followed by another subcommand.
  • Commands with printHelpOnEmptyArgs=true will no longer print help if an option has a value from an environment variable or value source. (#​382)
Deprecated
  • Deprecated Context.originalArgv. It will now always return an empty list. If your commands need an argv, you can pass it to them before you run them, or set in on the new Context.data map.
  • Deprecated Context.expandArgumentFiles. Use Context.argumentFileReader instead.
  • Renamed the following Context fields to be more consistent. The old names are deprecated.
old name new name
Context.envvarReader Context.readEnvvar
Context.correctionSuggestor Context.suggestTypoCorrection
Context.argumentFileReader Context.readArgumentFile
Context.tokenTransformer Context.transformToken
Removed
  • Removed previously deprecated experimental annotations.
  • Removed MordantHelpFormatter.graphemeLength
  • Removed TermUi

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/major-5-clikt branch 9 times, most recently from c5133d9 to a68863f Compare September 21, 2024 21:10
@TWiStErRob TWiStErRob force-pushed the renovate/major-5-clikt branch from a68863f to 0f1e40f Compare September 22, 2024 16:56
Copy link
Contributor Author

renovate bot commented Sep 22, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

renovate bot and others added 14 commits September 28, 2024 19:07
Exception in thread "main" java.lang.SecurityException: System.exit() is not allowed
        at net.twisterrob.ghlint.docs.cli.NoExitSecurityManager.checkExit(main.kt:11)
        at java.base/java.lang.Runtime.exit(Runtime.java:113)
        at java.base/java.lang.System.exit(System.java:1860)
        at com.github.ajalt.mordant.internal.MppInternal_jvmKt.exitProcessMpp(MppInternal.jvm.kt:149)
        at com.github.ajalt.mordant.platform.MultiplatformSystem.exitProcess(MultiplatformSystem.kt:26)
        at com.github.ajalt.clikt.core.MordantContextKt.installMordant$lambda$8$lambda$6(MordantContext.kt:59)
        at com.github.ajalt.clikt.core.CoreCliktCommandKt.main(CoreCliktCommand.kt:114)
        at com.github.ajalt.clikt.core.CoreCliktCommandKt.main(CoreCliktCommand.kt:90)
        at net.twisterrob.ghlint.cli.MainKt.main(main.kt:6)
        at net.twisterrob.ghlint.docs.cli.MainKt.main(main.kt:22)
Execution failed for task ':ghlint-cli:fatJar'.
> Cannot copy zip entry '${GRADLE_USER_HOME}\caches\modules-2\files-2.1\com.github.ajalt.mordant\mordant-jvm-ffm-jvm\3.0.0\96a8677a522395ae552719cfd050d5b9a47ecd8e\mordant-jvm-ffm-jvm.jar!META-INF/services/com.github.ajalt.mordant.terminal.TerminalInterfaceProvider' to 'META-INF/services/com.github.ajalt.mordant.terminal.TerminalInterfaceProvider' because zip entry '${GRADLE_USER_HOME}\caches\modules-2\files-2.1\com.github.ajalt.mordant\mordant-jvm-jna-jvm\3.0.0\bde15ea7842e9b77dec187390cde07bf6c15b14d\mordant-jvm-jna-jvm.jar!META-INF/services/com.github.ajalt.mordant.terminal.TerminalInterfaceProvider' has already been copied there.

Execution failed for task ':ghlint-cli:fatJar'.
> Cannot copy zip entry '${GRADLE_USER_HOME}\caches\modules-2\files-2.1\com.github.ajalt.mordant\mordant-jvm-graal-ffi-jvm\3.0.0\e5c456bbad024da819bffde07a223ae6cb9582a3\mordant-jvm-graal-ffi-jvm.jar!META-INF/proguard/mordant.pro' to 'META-INF/proguard/mordant.pro' because zip entry '${GRADLE_USER_HOME}\caches\modules-2\files-2.1\com.github.ajalt.mordant\mordant-jvm-jna-jvm\3.0.0\bde15ea7842e9b77dec187390cde07bf6c15b14d\mordant-jvm-jna-jvm.jar!META-INF/proguard/mordant.pro' has already been copied there.
@TWiStErRob TWiStErRob force-pushed the renovate/major-5-clikt branch from 6d4eaf5 to 775a5de Compare September 28, 2024 19:28
@TWiStErRob TWiStErRob marked this pull request as draft September 28, 2024 19:28
@TWiStErRob TWiStErRob marked this pull request as ready for review September 29, 2024 10:59
@TWiStErRob TWiStErRob enabled auto-merge (squash) September 29, 2024 11:00
@TWiStErRob TWiStErRob merged commit 78bd7f8 into main Sep 29, 2024
16 checks passed
@TWiStErRob TWiStErRob deleted the renovate/major-5-clikt branch September 29, 2024 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant