svg-to-compose
svg-to-compose copied to clipboard
fix(deps): update dependency com.github.ajalt.clikt:clikt to v5
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| com.github.ajalt.clikt:clikt | 4.4.0 -> 5.0.0 |
Release Notes
ajalt/clikt (com.github.ajalt.clikt:clikt)
v5.0.0
Added
- Publish
iosArm64andiosX64targets. - Added
NoSuchArgumentexception that is thrown when too many arguments were given on the command line. Previously, a less specificUsageErrorwas thrown instead. - Added
CommandLineParser.tokenizethat splits a string into argv tokens. - Added
CommandLineParserthat provides functions for parsing and finalizing commands manually for more control. - Added
Context.invokedSubcommandsthat contains all subcommands of the current command that are going to be invoked whenallowMultipleSubcommandsistrue. - Added
SuspendingCliktCommandthat has asuspend fun runmethod, allowing you to use coroutines in your commands. - Added
ChainedCliktCommandthat allows you to return a value from yourrunmethod and pass it to the next command in the chain. - Added
Context.dataas an alternative toobjthat allows you to store more than one object in the context. - Added
Context.echoerto customize howechomessages are printed. - Added
CompletionGeneratorto manually generate completions for a command. - Added
Context.exitProcesswhich 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.testto control the terminal interactivity. (#517) - Added
associate{},associateBy{}, andassociateWith{}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
limitandignoreCaseparameters tooption().split(). (#541) - Support calling
--helpon subcommands when parents have required parameters.
Changed
-
In a subcommand with and an
argument()withmultiple()oroptional(), the behavior is now the same regardless of the value ofallowMultipleSubcommands: 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 helpfun helpepilogfun helpEpiloginvokeWithoutSubcommandval invokeWithoutSubcommandprintHelpOnEmptyArgsval printHelpOnEmptyArgshelpTagsval helpTagsautoCompleteEnvvarval autoCompleteEnvvarallowMultipleSubcommandsval allowMultipleSubcommandstreatUnknownOptionsAsArgsval treatUnknownOptionsAsArgshiddenval hiddenFromHelp -
The following methods on
CliktCommandhave been renamed:commandHelp->help,commandHelpEpilog->epilog. The old names are deprecated. -
Breaking Change:
CliktCommand.mainandCliktCommand.parseare now extension functions rather than methods. -
Breaking Change:
Context.objandContext.terminal, andOptionTransformContext.terminalare now extension functions rather than properties. -
Breaking Change: The
RenderedSectionandDefinitionRowclasses have moved toAbstractHelpFormatter. -
Markdown support in the help formatter is no longer included by default. To enable it, include the
:clikt-markdowndependency and callyourCommand.installMordantMarkdown()before parsing. -
Updated Kotlin to 2.0.0
Fixed
- Fixed excess arguments not being reported when
allowMultipleSubcommands=trueand a subcommand has excess arguments followed by another subcommand. - Commands with
printHelpOnEmptyArgs=truewill 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 newContext.datamap. - Deprecated
Context.expandArgumentFiles. UseContext.argumentFileReaderinstead. - Renamed the following
Contextfields 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 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, check this box
This PR was generated by Mend Renovate. View the repository job log.
[!IMPORTANT]
Review skipped
Bot user detected.
To trigger a single review, invoke the
@coderabbitai reviewcommand.You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.
🪧 Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
I pushed a fix in commit <commit_id>, please review it.Generate unit testing code for this file.Open a follow-up GitHub issue for this discussion.
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai generate unit testing code for this file.@coderabbitai modularize this function.
- PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.@coderabbitai read src/utils.ts and generate unit testing code.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.@coderabbitai help me debug CodeRabbit configuration file.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (Invoked using PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.
Other keywords and placeholders
- Add
@coderabbitai ignoreanywhere in the PR description to prevent this PR from being reviewed. - Add
@coderabbitai summaryto generate the high-level summary at a specific location in the PR description. - Add
@coderabbitaianywhere in the PR title to generate the title automatically.
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.
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.