aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJae-Heon Ji <32578710+jaeheonji@users.noreply.github.com>2023-11-02 21:09:18 +0900
committerGitHub <noreply@github.com>2023-11-02 13:09:18 +0100
commitc87ff8cb2e6667648fc773dd2a811c25579c4ca0 (patch)
tree8757e0a0e69390e9ec6fea67b4eedcce44ff9c8b /src
parentdocs(changelog): plugin ui components (diff)
downloadsl0ppij-c87ff8cb2e6667648fc773dd2a811c25579c4ca0.tar.gz
sl0ppij-c87ff8cb2e6667648fc773dd2a811c25579c4ca0.tar.xz
sl0ppij-c87ff8cb2e6667648fc773dd2a811c25579c4ca0.zip
feat: load plugins from the web (#2863)
* feat: add basic downloader * feat: add download progress bar * feat: move crate location and some fix * feat: add downloader in layout * chore: remove comment * Revert "feat: add downloader in layout" This reverts commit ac4efb937e88cdb31fe7f18919f9fbe3857054b0. * feat: change http request module to surf * feat: add some function * feat: add plugin download in wasm * feat: add error handling * test: update unittest * feat: change hash library from ring to highway * fix: openssl-sys issue for surf-client * minor adjustments * style(fmt): rustfmt * move openssl-sys back to dependencies --------- Co-authored-by: Aram Drevekenin <aram@poor.dev>
Diffstat (limited to 'src')
-rw-r--r--src/main.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 3d1f37f3..72dce0d2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -46,6 +46,28 @@ fn main() {
commands::send_action_to_session(command_cli_action, opts.session, config);
std::process::exit(0);
}
+ if let Some(Command::Sessions(Sessions::Plugin {
+ url,
+ floating,
+ in_place,
+ configuration,
+ })) = opts.command
+ {
+ let command_cli_action = CliAction::NewPane {
+ command: vec![],
+ plugin: Some(url),
+ direction: None,
+ cwd: None,
+ floating,
+ in_place,
+ name: None,
+ close_on_exit: false,
+ start_suspended: false,
+ configuration,
+ };
+ commands::send_action_to_session(command_cli_action, opts.session, config);
+ std::process::exit(0);
+ }
if let Some(Command::Sessions(Sessions::Edit {
file,
direction,