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

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

Merged
merged 4 commits into from
Jun 11, 2024

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
12 checks passed
@tweidinger tweidinger deleted the feat/cli/plugin-init-default-toml-capabilities branch June 11, 2024 04:06
.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.

None yet

3 participants