Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Update dependency com.github.ajalt:clikt to v2.8.0 #33

Merged
merged 1 commit into from
Jan 11, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 11, 2022

WhiteSource Renovate

This PR contains the following updates:

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

Release Notes

ajalt/clikt

v2.8.0

Compare Source

Added
  • Added error parameter to PrintMessage and PrintHelpMessage. When true, CliktCommand.main will exit with status code 1. (#​187)
Changed
  • When printHelpOnEmptyArgs is true and no arguments are present, or when invokeWithoutSubcommand is false and no subcommand is present, CliktCommand.main will now exit with status code 1 rather than 0.
  • restrictTo now works with any Comparable value, not just Number.
  • CliktCommand.main now accepts Array<out String>, not just Array<String>. (#​196)
Fixed
  • Fixed option values being reset when calling multiple subcommands with allowMultipleSubcommands=true (#​190)

v2.7.1

Compare Source

Fixed
  • Fixed NPE thrown in some cases when using defaultByName (#​179)

v2.7.0

Compare Source

Added
  • Ability to use custom program exit status codes via ProgramResult.
  • inputStream and outputStream conversions for options and arguments. (#​157 and #​159)
  • splitPair, toMap, and associate extensions on option. (#​166)
  • treatUnknownOptionsAsArgs parameter to CliktCommand. (#​152)
  • defaultByName function for groupChoice and groupSwitch options. (#​171)
Changed
Fixed
  • Correctly parse short options with attached values that contain =

v2.6.0

Compare Source

Added
  • registeredSubcommands, registeredOptions, registeredArguments, and registeredParameterGroups methods on CliktCommand.
  • Ability to read default option values from configuration files and other sources. Support for Java property files is built in on JVM, see the json sample for an example of reading from other formats.
  • allowMultipleSubcommands parameter to CliktCommand that allows you to pass multiple subcommands in the same call. (docs)
  • Errors from typos in subcommand names will now include suggested corrections. Corrections for options and subcommands are now based on a Jaro-Winkler similarity metric, and can be customized with Context.correctionSuggestor
Changed
  • Update Kotlin to 1.3.70
  • convert can be called more than once on the same option or argument, including after calls to conversion functions like int and file.
  • CliktCommand.toString now includes the class name
  • Reverted automatic ~ expansion in file() and path() introduced in 2.5.0. If you need this behavior, you can implement it with code like convert { /* expand tidle */ }.file()
Deprecated
  • wrapValue is now deprecated, since convert can be used in its place instead.

v2.5.0

Compare Source

Added
  • Clikt is now available as a Kotlin Multiplatform Project, supporting JVM, NodeJS, and native Windows, Linux, and macOS.
  • eagerOption {} function to more easily register eager options.
  • Eager options can now be added to option groups in help out by passing a value for groupName when creating them.
  • canBeSymlink parameter to file() and path() conversions that can be used to disallow symlinks
  • CliktCommand.eagerOption to simplify creating custom eager options
Changed
  • The parameter names of file() and path() conversions have changed. The existing names are deprecated, and can be converted to the new usages with an IntelliJ inspection. Note that if you are calling these functions with unnamed arguments (e.g. file(true, false)), you'll need to add argument names in order to remove the deprecation warning.
Deprecated
  • The CliktCommand.context property has been deprecated in favor of the new name, currentContext, to avoid confusion with the CliktCommand.context{} method.
  • NoRunCliktCommand was renamed to NoOpCliktCommand. The existing class is deprecated. (#​130)
Fixed
  • file() and path() conversions will now properly expand leading ~ in paths to the home directory for mustExist, canBeFile, and canBeDir checks. The property value is unchanged, and can still begin with a ~. (#​131)

Configuration

📅 Schedule: At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, 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, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@BjoernPetersen BjoernPetersen merged commit f414063 into master Jan 11, 2022
@renovate renovate bot deleted the renovate/com.github.ajalt branch January 11, 2022 16:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants