fix(cli): expose hidden structs (#1856)

closes  #1843
This commit is contained in:
Amr Bashir
2024-10-01 15:35:13 +03:00
committed by GitHub
parent 04459afbb6
commit 68579934c9
5 changed files with 12 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"cli": patch
---
Expose `Matches`, `SubcommandMatches` and `ArgData` structs.
+2
View File
@@ -18,3 +18,5 @@ impl Serialize for Error {
serializer.serialize_str(self.to_string().as_ref())
}
}
pub type Result<T> = std::result::Result<T, Error>;
+3 -2
View File
@@ -23,8 +23,9 @@ mod error;
mod parser;
use config::{Arg, Config};
pub use error::Error;
type Result<T> = std::result::Result<T, Error>;
pub use error::{Error, Result};
pub use parser::{ArgData, Matches, SubcommandMatches};
pub struct Cli<R: Runtime>(PluginApi<R, Config>);
@@ -1,6 +1,6 @@
## Default Permission
# Tauri SQL Default Permissions
### Default Permissions
This permission set configures what kind of
database operations are available from the sql plugin.
+1 -1
View File
@@ -335,7 +335,7 @@
"const": "deny-select"
},
{
"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",
"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",
"type": "string",
"const": "default"
}