Skip to content

Conversation

floriskn
Copy link
Contributor

Added a new global: bool field to the CliArg struct to support global CLI arguments.

Global arguments are automatically propagated to all subcommands, making them available throughout the CLI regardless of where they are defined. This flag is placed near other top-level behavioral flags for better organization and readability.

This is useful for flags like --verbose that are commonly needed across all levels of a command hierarchy.

The new field is optional and defaults to false.

floriskn added 2 commits June 15, 2025 13:55
Added a new `global: bool` field to the `CliArg` struct to support global CLI arguments.
@floriskn floriskn requested a review from a team as a code owner June 15, 2025 12:09
Copy link
Contributor

Package Changes Through fb313a6

There are 10 changes which include updater with minor, updater-js with minor, cli with minor, cli-js with minor, autostart with minor, autostart-js with minor, log with minor, log-js with minor, opener with minor, opener-js with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
api-example 2.0.26 2.0.27
api-example-js 2.0.22 2.0.23
autostart 2.3.0 2.4.0
autostart-js 2.3.0 2.4.0
cli 2.2.0 2.3.0
cli-js 2.2.0 2.3.0
opener 2.2.7 2.3.0
opener-js 2.2.7 2.3.0
log 2.4.0 2.5.0
log-js 2.4.0 2.5.0
updater 2.7.1 2.8.0
updater-js 2.7.1 2.8.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@FabianLars FabianLars merged commit 37c2fb4 into tauri-apps:v2 Jun 18, 2025
16 checks passed
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