Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): expose hidden structs #1856

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changes/cli-hidden-structs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cli": patch
---

Expose `Matches`, `SubcommandMatches` and `ArgData` structs.
2 changes: 2 additions & 0 deletions plugins/cli/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
5 changes: 3 additions & 2 deletions plugins/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>);

Expand Down
2 changes: 1 addition & 1 deletion plugins/sql/permissions/autogenerated/reference.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion plugins/sql/permissions/schemas/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
Loading