diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-12-18 01:12:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-18 01:12:28 +0100 |
commit | 7b212bc5741ea0cfb6bd87c280be0c864cb32813 (patch) | |
tree | 0943c299d10f26d0b2e797ff02eb011336c074e3 /runtime/examples/hello_runtime.rs | |
parent | 59dedf217f0d43dd75da0f615846526d088dbf0b (diff) |
refactor(permissions): factor out PermissionPrompter trait, add callbacks (#16975)
This commit refactors several things in "runtime/permissions" module:
- splits it into "mod.rs" and "prompter.rs"
- adds "PermissionPrompter" trait with two implementations:
* "TtyPrompter"
* "TestPrompter"
- adds "before" and "after" prompt callback which can be used to hide
progress bar in the CLI (to be done in a follow up)
- "permissions_prompt" API returns "PromptResponse" enum, instead
of a boolean; this allows to add "allow all"/"deny all" functionality
for the prompt
Diffstat (limited to 'runtime/examples/hello_runtime.rs')
0 files changed, 0 insertions, 0 deletions