You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AlexanderAni
changed the title
Tauri CLI does not support more than one subcommand
[bug] Tauri CLI does not support more than one subcommand
Jul 18, 2022
Describe the bug
Overview
Tauri CLI does not support more than one subcommand in command line.
Current CLAP implementation supports multiple subcommands.
Example of multiple subcommands:
Where:
git
— commandstash
— first subcommand (relative togit
)push
— second subcommand (relative tostash
)Reproduction
1. Create Tauri App
I prefer to use Vite to bootstrap Tauri App.
2. Add CLI commands to Tauri config
Modify
tauri.conf.json
to addgit stash push
subcommands.Note: only
cli
part of config provided.3. Add output on startup
This code will print raw matches and a list of subcommands in Terminal.
4. Check the results
You can check the results without building an application.
Expected behavior
Current Result:
git
instead of 3 subcommands (git
,stash
,push
).Expected Result:
git
,stash
,push
.Platform and versions
Stack trace
not applicable
Additional context
Reference: Current Source code
Current commit: 7386084.
The text was updated successfully, but these errors were encountered: