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 to v5 #968

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

slack-oss-bot
Copy link
Collaborator

This PR contains the following updates:

Package Type Update Change
com.github.ajalt.clikt:clikt dependencies major 4.4.0 -> 5.0.0

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


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 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 has been generated by Renovate Bot.

@ZacSweers ZacSweers added this pull request to the merge queue Sep 18, 2024
Merged via the queue into main with commit faa7274 Sep 18, 2024
3 checks passed
@ZacSweers ZacSweers deleted the test-renovate/com.github.ajalt.clikt-clikt-5.x branch September 18, 2024 20:44
kateliu20 added a commit that referenced this pull request Sep 19, 2024
Add ChatBotActionService

Adjust ChatPresenter for the service

Adjust so it can take in special character input

Separate executeCommand in multiple functions for testing

Make visible for testing

Initial test for json input, failing

Adjust so there's a role in the Message data class

Add passing test for creating json input

Clean up, add more JsonInput tests

Change chat colors

Update dependency com.github.oshi:oshi-core to v6.6.4 (#965)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [com.github.oshi:oshi-core](https://redirect.github.com/oshi/oshi) |
dependencies | patch | `6.6.3` -> `6.6.4` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

<details>
<summary>oshi/oshi (com.github.oshi:oshi-core)</summary>

[`v6.6.4`](https://redirect.github.com/oshi/oshi/blob/HEAD/CHANGELOG.md#660-2024-04-13--661-2024-05-26--662-2024-07-21--663-2024-08-20--664-2024-09-15)

-   [#&#8203;2603](https://redirect.github.com/oshi/oshi/pull/2603),
[#&#8203;2625](https://redirect.github.com/oshi/oshi/pull/2625): Add
part number to Physical Memory -
[@&#8203;BartekDziurowicz](https://redirect.github.com/BartekDziurowicz),
[@&#8203;dbwiddis](https://redirect.github.com/dbwiddis).
- [#&#8203;2644](https://redirect.github.com/oshi/oshi/pull/2644): Add
serial number to Physical Memory -
[@&#8203;Tegrason](https://redirect.github.com/Tegrason).

- [#&#8203;2605](https://redirect.github.com/oshi/oshi/pull/2605):
Reduce CpuStat.getSystemCpuLoadticks memory allocation pressure -
[@&#8203;chrisribble](https://redirect.github.com/chrisribble).
- [#&#8203;2612](https://redirect.github.com/oshi/oshi/pull/2612): Use
1k buffer in FileUtils.readLines to reduce heap allocation pressure -
[@&#8203;chrisribble](https://redirect.github.com/chrisribble).
- [#&#8203;2621](https://redirect.github.com/oshi/oshi/pull/2621): Cache
thread counters when updating OS Process with suspended state -
[@&#8203;dbwiddis](https://redirect.github.com/dbwiddis).
- [#&#8203;2626](https://redirect.github.com/oshi/oshi/pull/2626): Make
sys and dev paths on Linux configurable -
[@&#8203;dbwiddis](https://redirect.github.com/dbwiddis).
- [#&#8203;2627](https://redirect.github.com/oshi/oshi/pull/2627): Add
more SMBIOSMemoryType values -
[@&#8203;dbwiddis](https://redirect.github.com/dbwiddis).
- [#&#8203;2645](https://redirect.github.com/oshi/oshi/pull/2645): fix
getOwningProcessId sometimes return -1 on 64x linux -
[@&#8203;yourancc](https://redirect.github.com/yourancc).
- [#&#8203;2660](https://redirect.github.com/oshi/oshi/pull/2660): Add
macOS 15 (Sequoia) to version properties -
[@&#8203;dbwiddis](https://redirect.github.com/dbwiddis).
- [#&#8203;2662](https://redirect.github.com/oshi/oshi/pull/2662): Only
warn on duplicate properties files if they differ -
[@&#8203;dbwiddis](https://redirect.github.com/dbwiddis).
- [#&#8203;2692](https://redirect.github.com/oshi/oshi/pull/2692): Do
not log errors for reading process arguments on Linux -
[@&#8203;wolfs](https://redirect.github.com/wolfs).
- [#&#8203;2704](https://redirect.github.com/oshi/oshi/pull/2704):
Properly parse CPU vendor when lscpu not available -
[@&#8203;dbwiddis](https://redirect.github.com/dbwiddis).
- [#&#8203;2705](https://redirect.github.com/oshi/oshi/pull/2705):
Restore optional legacy method of calculating Windows System CPU -
[@&#8203;dbwiddis](https://redirect.github.com/dbwiddis).
- [#&#8203;2711](https://redirect.github.com/oshi/oshi/pull/2711): Do
not log error on macOS for hw.nperflevels -
[@&#8203;Puppy4C](https://redirect.github.com/Puppy4C).
- [#&#8203;2722](https://redirect.github.com/oshi/oshi/pull/2722): Fix
speed value for LinuxNetworkIF -
[@&#8203;Puppy4C](https://redirect.github.com/Puppy4C).
- [#&#8203;2724](https://redirect.github.com/oshi/oshi/pull/2724):
Clarify IO bytes documentation on OSProcess -
[@&#8203;dbwiddis](https://redirect.github.com/dbwiddis).
- [#&#8203;2725](https://redirect.github.com/oshi/oshi/pull/2725):
Reduce redundant logging on perf counter failures -
[@&#8203;dbwiddis](https://redirect.github.com/dbwiddis).
- [#&#8203;2726](https://redirect.github.com/oshi/oshi/pull/2726): JNA
5.15.0 - [@&#8203;dbwiddis](https://redirect.github.com/dbwiddis).

</details>

---

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

🚦 **Automerge**: Enabled.

♻ **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Run spotless

Remove script content

Update -Werror behavior in kotlin and disallow in tests by default (#963)

Never realized we didn't allow this in tests, this refreshes the logic
for this area a bit and adds a test control.

<!--
  ⬆ Put your description above this! ⬆

  Please be descriptive and detailed.

Please read our [Contributing
Guidelines](https://github.com/tinyspeck/slack-gradle-plugin/blob/main/.github/CONTRIBUTING.md)
and [Code of Conduct](https://slackhq.github.io/code-of-conduct).

Don't worry about deleting this, it's not visible in the PR!
-->

Update jna monorepo to v5.15.0 (#966)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[net.java.dev.jna:jna-platform](https://redirect.github.com/java-native-access/jna)
| dependencies | minor | `5.14.0` -> `5.15.0` |
|
[net.java.dev.jna:jna](https://redirect.github.com/java-native-access/jna)
| dependencies | minor | `5.14.0` -> `5.15.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

<details>
<summary>java-native-access/jna
(net.java.dev.jna:jna-platform)</summary>

[`v5.15.0`](https://redirect.github.com/java-native-access/jna/blob/HEAD/CHANGES.md#Release-5150)

[Compare
Source](https://redirect.github.com/java-native-access/jna/compare/5.14.0...5.15.0)

\==============

-
[#&#8203;1578](https://redirect.github.com/java-native-access/jna/pull/1578):
Add support for FreeBSD aarch64 -
[@&#8203;alexdupre](https://redirect.github.com/alexdupre).
-
[#&#8203;1593](https://redirect.github.com/java-native-access/jna/pull/1593):
Add support for DragonFly BSD x86-64 -
[@&#8203;liweitianux](https://redirect.github.com/liweitianux).
-
[#&#8203;1595](https://redirect.github.com/java-native-access/jna/pull/1595):
Add `IsProcessorFeaturePresent` to `c.s.j.p.win32.Kernel32` -
[@&#8203;dbwiddis](https://redirect.github.com/dbwiddis).
-
[#&#8203;1602](https://redirect.github.com/java-native-access/jna/pull/1602):
Add `XMoveWindow`, `XResizeWindow`, `XMoveResizeWindow`, `XRaiseWindow`,
`XLowerWindow` X11 calls to `c.s.j.p.unix.X11` -
[@&#8203;vinceh121](https://redirect.github.com/vinceh121).
-
[#&#8203;1613](https://redirect.github.com/java-native-access/jna/issues/1613):
Added static helper method \`Native#getNativeLibrary' for getting the
underlying NativeLibrary instance from a Library interface instance or
from a "registered" class -
[@&#8203;matthiasblaesing](https://redirect.github.com/matthiasblaesing).
-
[#&#8203;1624](https://redirect.github.com/java-native-access/jna/pull/1624):
Enable linker build-id for android builds -
[@&#8203;mstyura](https://redirect.github.com/mstyura).

-
[#&#8203;1579](https://redirect.github.com/java-native-access/jna/issues/1579):
Fix analysis of ELF binary on arm systems running with a java ELF binary
without section table headers (java8 on armv7 NAS) -
[@&#8203;matthiasblaesing](https://redirect.github.com/matthiasblaesing).
-
[#&#8203;1586](https://redirect.github.com/java-native-access/jna/issues/1586):
Fix free_callback JNI weak reference leak -
[@&#8203;xiezhaokun](https://redirect.github.com/xiezhaokun).
-
[6486c90d913a413f247eef84742ce3c474738933](https://redirect.github.com/java-native-access/jna/commit/6486c90d913a413f247eef84742ce3c474738933):
Check CallbackReference#cbstruct for null when checking existing
Reference -
[@&#8203;matthiasblaesing](https://redirect.github.com/matthiasblaesing).
-
[#&#8203;1622](https://redirect.github.com/java-native-access/jna/issues/1622):
Add "linux-riscv64" entry to OSGI Bundle-NativeCode header in
MANIFEST.MF -
[@&#8203;matthiasblaesing](https://redirect.github.com/matthiasblaesing).

</details>

---

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

🚦 **Automerge**: Enabled.

♻ **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 these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Update dependency com.android.tools.build:gradle to v8.6.1 (#971)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [com.android.tools.build:gradle](http://tools.android.com/)
([source](https://android.googlesource.com/platform/tools/base)) |
dependencies | patch | `8.6.0` -> `8.6.1` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

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

🚦 **Automerge**: Enabled.

♻ **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44Ny4xIiwidXBkYXRlZEluVmVyIjoiMzguODcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Update dependency com.github.ajalt.clikt:clikt to v5 (#968)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[com.github.ajalt.clikt:clikt](https://redirect.github.com/ajalt/clikt)
| dependencies | major | `4.4.0` -> `5.0.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

<details>
<summary>ajalt/clikt (com.github.ajalt.clikt:clikt)</summary>

[`v5.0.0`](https://redirect.github.com/ajalt/clikt/blob/HEAD/CHANGELOG.md#500)

[Compare
Source](https://redirect.github.com/ajalt/clikt/compare/4.4.0...5.0.0)

-   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.
([#&#8203;517](https://redirect.github.com/ajalt/clikt/pull/517))
- Added `associate{}`, `associateBy{}`, and `associateWith{}` transforms
for options that allow you to convert the keys and values of the map.
([#&#8203;529](https://redirect.github.com/ajalt/clikt/pull/529))
- Added support for aliasing options to other options.
([#&#8203;535](https://redirect.github.com/ajalt/clikt/pull/535))
- Added `limit` and `ignoreCase` parameters to `option().split()`.
([#&#8203;541](https://redirect.github.com/ajalt/clikt/pull/541))
- Support calling `--help` on subcommands when parents have required
parameters.

- 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 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.
([#&#8203;382](https://redirect.github.com/ajalt/clikt/pull/382))

- 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 previously deprecated experimental annotations.
-   Removed `MordantHelpFormatter.graphemeLength`
-   Removed `TermUi`

</details>

---

📅 **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44NC4xIiwidXBkYXRlZEluVmVyIjoiMzguODQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Co-authored-by: Zac Sweers <pandanomic@gmail.com>
@ZacSweers ZacSweers restored the test-renovate/com.github.ajalt.clikt-clikt-5.x branch September 19, 2024 05:04
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