Skip to content

feat(cli): include default.toml and capabilities in plugin template#10030

Merged
tweidinger merged 4 commits intodevfrom
feat/cli/plugin-init-default-toml-capabilities
Jun 11, 2024
Merged

feat(cli): include default.toml and capabilities in plugin template#10030
tweidinger merged 4 commits intodevfrom
feat/cli/plugin-init-default-toml-capabilities

Conversation

@amrbashir
Copy link
Member

No description provided.

@amrbashir amrbashir requested a review from a team as a code owner June 10, 2024 16:54
@@ -1,4 +1,4 @@
const COMMANDS: &[&str] = &["ping", "execute"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any specific reason to remove the execute command in this PR?
This breaks the example app UI which invokes the execute command.

Copy link
Member Author

@amrbashir amrbashir Jun 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, I meant to remove it and replace it with ping, seems like I missed that part, I will update execute usages to be ping instead

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be fixed now

@tweidinger tweidinger merged commit f44a2ec into dev Jun 11, 2024
@tweidinger tweidinger deleted the feat/cli/plugin-init-default-toml-capabilities branch June 11, 2024 04:06
std::fs::create_dir(&permissions_dir)
.with_context(|| "failed to create `permissions` directory")?;

let default_permissions = r#"[default]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nitpick I noticed "too late" is that this should include a reference to the schema file for autocompletion and validation.

"$schema" = "schemas/schema.json"

pewsheen pushed a commit to pewsheen/tauri that referenced this pull request Jun 13, 2024
…auri-apps#10030)

* feat(cli): include default.toml and capabilities in plugin template

* replace execute usage with ping

* add to capabilities

* use default permission set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants