Skip to content

Commit

Permalink
fix(cli): expose hidden structs (#1856)
Browse files Browse the repository at this point in the history
closes  #1843
  • Loading branch information
amrbashir authored Oct 1, 2024
1 parent 04459af commit 6857993
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
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

0 comments on commit 6857993

Please sign in to comment.