Skip to content

Commit 6d943c4

Browse files
authored
fix(cli): correct capability new and --skip-stapling help text (#16065)
`tauri capability new` described itself as creating a permission file, and the `--skip-stapling` help text opened with the inverse of what the flag does. Both strings flow into the generated CLI reference.
1 parent 5d995ed commit 6d943c4

5 files changed

Lines changed: 10 additions & 4 deletions

File tree

‎.changes/cli-help-text-fixes.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": "patch:bug"
3+
"@tauri-apps/cli": "patch:bug"
4+
---
5+
6+
Fix the `tauri capability new` command description, which said "Create a new permission file", and the `--skip-stapling` help text on `tauri build` and `tauri bundle`, whose first line described the opposite of what the flag does.

‎crates/tauri-bundler/src/bundle/settings.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ pub struct MacOsSettings {
349349
pub exception_domain: Option<String>,
350350
/// Code signing identity.
351351
pub signing_identity: Option<String>,
352-
/// Whether to wait for notarization to finish and `staple` the ticket onto the app.
352+
/// Skip stapling the notarization ticket onto the app and do not wait for notarization to finish.
353353
///
354354
/// Gatekeeper will look for stapled tickets to tell whether your app was notarized without
355355
/// reaching out to Apple's servers which is helpful in offline environments.

‎crates/tauri-cli/src/acl/capability/new.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use tauri_utils::acl::capability::{Capability, PermissionEntry};
1010
use crate::{Result, acl::FileFormat, error::ErrorExt, helpers::prompts};
1111

1212
#[derive(Debug, Parser)]
13-
#[clap(about = "Create a new permission file")]
13+
#[clap(about = "Create a new capability file")]
1414
pub struct Options {
1515
/// Capability identifier.
1616
identifier: Option<String>,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub struct Options {
6161
/// Skip prompting for values
6262
#[clap(long, env = "CI")]
6363
pub ci: bool,
64-
/// Whether to wait for notarization to finish and `staple` the ticket onto the app.
64+
/// Skip stapling the notarization ticket onto the app and do not wait for notarization to finish.
6565
///
6666
/// Gatekeeper will look for stapled tickets to tell whether your app was notarized without
6767
/// reaching out to Apple's servers which is helpful in offline environments.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub struct Options {
8282
/// Skip prompting for values
8383
#[clap(long, env = "CI")]
8484
pub ci: bool,
85-
/// Whether to wait for notarization to finish and `staple` the ticket onto the app.
85+
/// Skip stapling the notarization ticket onto the app and do not wait for notarization to finish.
8686
///
8787
/// Gatekeeper will look for stapled tickets to tell whether your app was notarized without
8888
/// reaching out to Apple's servers which is helpful in offline environments.

0 commit comments

Comments
 (0)