@tauri-apps/plugin-cli
Esta página aún no está disponible en tu idioma.
Parse arguments from your Command Line Interface.
Interfaces
ArgMatch
Since
2.0.0
Properties
Property | Type | Description | Defined in |
---|---|---|---|
occurrences | number | Number of occurrences | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/cli/guest-js/index.ts#L26 |
value | null | string | boolean | string [] | string if takes value boolean if flag string[] or null if takes multiple values | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/cli/guest-js/index.ts#L22 |
CliMatches
Since
2.0.0
Properties
Property | Type | Defined in |
---|---|---|
args | Record <string , ArgMatch > | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/cli/guest-js/index.ts#L41 |
subcommand | null | SubcommandMatch | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/cli/guest-js/index.ts#L42 |
SubcommandMatch
Since
2.0.0
Properties
Property | Type | Defined in |
---|---|---|
matches | CliMatches | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/cli/guest-js/index.ts#L34 |
name | string | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/cli/guest-js/index.ts#L33 |
Functions
getMatches()
Parse the arguments provided to the current process and get the matches using the configuration defined tauri.cli
in tauri.conf.json
Returns
Example
Since
2.0.0
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/cli/guest-js/index.ts#L66
© 2024 Tauri Contributors. CC-BY / MIT