Skip to content

Commit 6857993

Browse files
authored
fix(cli): expose hidden structs (tauri-apps#1856)
closes tauri-apps#1843
1 parent 04459af commit 6857993

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

.changes/cli-hidden-structs.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"cli": patch
3+
---
4+
5+
Expose `Matches`, `SubcommandMatches` and `ArgData` structs.

plugins/cli/src/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ impl Serialize for Error {
1818
serializer.serialize_str(self.to_string().as_ref())
1919
}
2020
}
21+
22+
pub type Result<T> = std::result::Result<T, Error>;

plugins/cli/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ mod error;
2323
mod parser;
2424

2525
use config::{Arg, Config};
26-
pub use error::Error;
27-
type Result<T> = std::result::Result<T, Error>;
26+
27+
pub use error::{Error, Result};
28+
pub use parser::{ArgData, Matches, SubcommandMatches};
2829

2930
pub struct Cli<R: Runtime>(PluginApi<R, Config>);
3031

plugins/sql/permissions/autogenerated/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Default Permission
22

3-
# Tauri SQL Default Permissions
3+
### Default Permissions
44

55
This permission set configures what kind of
66
database operations are available from the sql plugin.

plugins/sql/permissions/schemas/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335
"const": "deny-select"
336336
},
337337
{
338-
"description": "# Tauri SQL Default Permissions\n\nThis permission set configures what kind of\ndatabase operations are available from the sql plugin.\n\n### Granted Permissions\n\nAll reading related operations are enabled.\nAlso allows to load or close a connection.\n\n",
338+
"description": "### Default Permissions\n\nThis permission set configures what kind of\ndatabase operations are available from the sql plugin.\n\n### Granted Permissions\n\nAll reading related operations are enabled.\nAlso allows to load or close a connection.\n\n",
339339
"type": "string",
340340
"const": "default"
341341
}

0 commit comments

Comments
 (0)