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

closes  #1843
pull/1839/head
Amr Bashir 8 months ago committed by GitHub
parent 04459afbb6
commit 68579934c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"cli": patch
---
Expose `Matches`, `SubcommandMatches` and `ArgData` structs.

@ -18,3 +18,5 @@ impl Serialize for Error {
serializer.serialize_str(self.to_string().as_ref()) serializer.serialize_str(self.to_string().as_ref())
} }
} }
pub type Result<T> = std::result::Result<T, Error>;

@ -23,8 +23,9 @@ mod error;
mod parser; mod parser;
use config::{Arg, Config}; 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>); pub struct Cli<R: Runtime>(PluginApi<R, Config>);

@ -1,6 +1,6 @@
## Default Permission ## Default Permission
# Tauri SQL Default Permissions ### Default Permissions
This permission set configures what kind of This permission set configures what kind of
database operations are available from the sql plugin. database operations are available from the sql plugin.

@ -335,7 +335,7 @@
"const": "deny-select" "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", "type": "string",
"const": "default" "const": "default"
} }

Loading…
Cancel
Save