summaryrefslogtreecommitdiff
path: root/runtime/permissions/lib.rs
diff options
context:
space:
mode:
authorLucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>2024-10-17 13:39:18 -0300
committerGitHub <noreply@github.com>2024-10-17 12:39:18 -0400
commit3b62e05062805d45fd626ac8e413e9b7aee7c3a1 (patch)
treeff6b811b6c1781eee0d1bdb85da4d7dfa450b5ab /runtime/permissions/lib.rs
parent33ceae4ce5c9f95bde52d5453a6c41488fa36846 (diff)
feat(permissions): expose PermissionPrompter and set_prompter function (#26327)
when defining a custom runtime, it might be useful to define a custom prompter - for instance when you are not relying on the terminal and want a GUI prompter instead
Diffstat (limited to 'runtime/permissions/lib.rs')
-rw-r--r--runtime/permissions/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/permissions/lib.rs b/runtime/permissions/lib.rs
index 2904242da..0cd489b17 100644
--- a/runtime/permissions/lib.rs
+++ b/runtime/permissions/lib.rs
@@ -39,6 +39,8 @@ use prompter::PromptResponse;
use prompter::PERMISSION_EMOJI;
pub use prompter::set_prompt_callbacks;
+pub use prompter::set_prompter;
+pub use prompter::PermissionPrompter;
pub use prompter::PromptCallback;
/// Fast exit from permission check routines if this permission