Skip to content

Commit cdaf7ea

Browse files
authored
fix(cli): clarify init frontend command prompts (#15765)
1 parent 08acfb3 commit cdaf7ea

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": "patch:enhance"
3+
"@tauri-apps/cli": "patch:enhance"
4+
---
5+
6+
Clarify that the `tauri init` frontend commands run before `tauri dev` and `tauri build`, and can be left empty when they are not needed.

‎crates/tauri-cli/src/init.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl Options {
142142
.map(|s| Ok(Some(s)))
143143
.unwrap_or_else(|| {
144144
prompts::input(
145-
"What is your frontend dev command?",
145+
"What command should Tauri run before `tauri dev` to start your frontend? (leave empty if not needed)",
146146
Some(default_dev_command(detected_package_manager).into()),
147147
self.ci,
148148
true,
@@ -154,7 +154,7 @@ impl Options {
154154
.map(|s| Ok(Some(s)))
155155
.unwrap_or_else(|| {
156156
prompts::input(
157-
"What is your frontend build command?",
157+
"What command should Tauri run before `tauri build` to build your frontend? (leave empty if not needed)",
158158
Some(default_build_command(detected_package_manager).into()),
159159
self.ci,
160160
true,

0 commit comments

Comments
 (0)