tauri/examples/sidecar
chip 10314cd5cf
feat(core): add argument parsing on shell scope (#44)
* feat: initial implementation

* feat: arg parser

* refactor: move codegen to context struct

* feat: regex validation

* fix tests

* fix: support magic argument value `-`

* feat: support value regex starting with `-`

* refactor: shell_scope mod, add happy path tests

* wip: scope command arguments

* wip: commands

* add better scoped errors and pattern matching

* add documentation to scoped command items

* support using the new shell scope for open

* use the proper items in tauri::scope during codegen

* shell-open uses ScopeError::Validation also

* use shell scoping for sidecar commands

* fix: cli.rs build

* fix: validation when arg list is empty

* require args in a non-fixed, non-empty config list

Co-authored-by: Chip Reed <chip@chip.sh>
2022-01-26 16:43:24 -03:00
..
scripts fix(docs): target triple detection script, closes #2084 (#2096) 2021-06-27 21:21:24 -03:00
src chore: add .prettierrc in repo root (#2145) 2021-07-03 19:48:04 -03:00
src-tauri feat(core): add argument parsing on shell scope (#44) 2022-01-26 16:43:24 -03:00
index.html refactor(examples): improve security when rendering HTML strings [TRI-003] (#14) 2022-01-09 14:35:30 -03:00
package.json fix(examples): sidecar example on Windows 2021-06-21 01:13:54 -03:00
README.md feat(examples): add sidecar example (#1999) 2021-06-16 22:18:24 -03:00
yarn.lock fix(examples): sidecar example on Windows 2021-06-21 01:13:54 -03:00

Sidecar example

This example demonstrates how to use the Tauri sidecar feature. It uses pkg to compile a Node.js application and bundle it on the Tauri application.