summaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/cli.rs
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 /zellij-utils/src/cli.rs
parent0e12f770cbf962673368d8b3b2ad7647cf641145 (diff)
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 'zellij-utils/src/cli.rs')
-rw-r--r--zellij-utils/src/cli.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs
index 79aad9947..c196c17d1 100644
--- a/zellij-utils/src/cli.rs
+++ b/zellij-utils/src/cli.rs
@@ -217,6 +217,32 @@ pub enum Sessions {
#[clap(short, long, value_parser, default_value("false"), takes_value(false))]
start_suspended: bool,
},
+ /// Load a plugin
+ #[clap(visible_alias = "r")]
+ Plugin {
+ /// Plugin URL, can either start with http(s), file: or zellij:
+ #[clap(last(true), required(true))]
+ url: String,
+
+ /// Plugin configuration
+ #[clap(short, long, value_parser)]
+ configuration: Option<PluginUserConfiguration>,
+
+ /// Open the new pane in floating mode
+ #[clap(short, long, value_parser, default_value("false"), takes_value(false))]
+ floating: bool,
+
+ /// Open the new pane in place of the current pane, temporarily suspending it
+ #[clap(
+ short,
+ long,
+ value_parser,
+ default_value("false"),
+ takes_value(false),
+ conflicts_with("floating")
+ )]
+ in_place: bool,
+ },
/// Edit file with default $EDITOR / $VISUAL
#[clap(visible_alias = "e")]
Edit {