summaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/cli.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2023-11-30 18:10:50 +0100
committerGitHub <noreply@github.com>2023-11-30 18:10:50 +0100
commitb0f36540fe3cb439fd0981cbb1ef5df6668ddbdf (patch)
tree6d1d7329361ad25506cc7e1cb7ea135b9434191b /zellij-utils/src/cli.rs
parent65bea269a45784d5b70bf4290bf55c2ddcd670e4 (diff)
feat(plugins): skip plugin cache flag (#2971)
* feat(plugins): allow explicitly skipping the plugin cache when loading * style(fmt): rustfmt * fix tests
Diffstat (limited to 'zellij-utils/src/cli.rs')
-rw-r--r--zellij-utils/src/cli.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs
index ee4024491..97a0cd778 100644
--- a/zellij-utils/src/cli.rs
+++ b/zellij-utils/src/cli.rs
@@ -242,6 +242,10 @@ pub enum Sessions {
conflicts_with("floating")
)]
in_place: bool,
+
+ /// Skip the memory and HD cache and force recompile of the plugin (good for development)
+ #[clap(short, long, value_parser, default_value("false"), takes_value(false))]
+ skip_plugin_cache: bool,
},
/// Edit file with default $EDITOR / $VISUAL
#[clap(visible_alias = "e")]
@@ -417,6 +421,8 @@ pub enum CliAction {
start_suspended: bool,
#[clap(long, value_parser)]
configuration: Option<PluginUserConfiguration>,
+ #[clap(short, long, value_parser)]
+ skip_plugin_cache: bool,
},
/// Open the specified file in a new zellij pane with your default EDITOR
Edit {
@@ -526,6 +532,8 @@ pub enum CliAction {
url: Url,
#[clap(short, long, value_parser)]
configuration: Option<PluginUserConfiguration>,
+ #[clap(short, long, value_parser)]
+ skip_plugin_cache: bool,
},
LaunchPlugin {
#[clap(short, long, value_parser)]
@@ -535,6 +543,8 @@ pub enum CliAction {
url: Url,
#[clap(short, long, value_parser)]
configuration: Option<PluginUserConfiguration>,
+ #[clap(short, long, value_parser)]
+ skip_plugin_cache: bool,
},
RenameSession {
name: String,