Releases: ajalt/clikt
Releases · ajalt/clikt
3.5.2
3.5.1
3.5.0
Added
- Added
hidden
parameter toCliktCommand
, which will prevent the command from being displayed as a subcommand in help output (#353) - Publish artifacts for the
macosArm64
target. Note that this target is not tested on CI. (#352)
Changed
- Default values for arguments will now be included in help output when
showDefaultValues=true
is set on your help formatter (#357)
Fixed
3.4.2
3.4.1
3.4.0
3.2.0
Added
InputStream.isCliktParameterDefaultStdin
andOutputStream.isCliktParameterDefaultStdout
to check if the streams returned frominputStream
/outputStream
options are proxying stdin/stdout (#272)
Changed
- Make parameters of
mutuallyExclusiveOptions
covariant to allow validation without explicit type annotations. (#265) - Updated kotlin to 1.5.0
Fixed
- Reading from an option or argument property on a command that hasn't been invoked will now always throw an
IllegalStateException
3.1.0
Added
- Added
required()
anddefaultLazy()
for nullable flag options likeswitch()
. - Added support for generating autocomplete scripts for Fish shells (thanks to @faogustavo for the initial PR)
- Added
CompletionCommand
andCliktCommand.completionOption()
that will print an autocomplete script when invoked, as an alternative to using environment variables.
Changed
- Updated Kotlin to 1.4.21
@argfiles
now allow line breaks in quoted values, which are included in the value verbatim. You can now end lines with\
to concatenate them with the following line.
3.0.1
3.0.0
Clikt 3.0 is a major release with a number of improvements and a few breaking API changes.
Highlights of this release
- Support for Browser JS targets
- Support for localization of all help output
- New extensions like
help()
andcheck()
to make it even easier to setup your commands.
See the full list of changes here, and a migration guide here.