PromptForCodeHook
Replacement for reading the paste-back code from stdin: receives the <site_base_url>/connect/?…&delivery=paste URL the user has to open and returns the code.
Replacement for reading the paste-back code from stdin: receives the
<site_base_url>/connect/?…&delivery=paste URL the user has to open and returns the code.
use sponsorkit::PromptForCodeHook;
pub type PromptForCodeHook = Arc<
dyn Fn(String) -> BoxFuture<std::io::Result<String>> + Send + Sync,
>;