aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/plugin_api/plugin_command.proto
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2023-10-16 13:42:19 +0200
committerGitHub <noreply@github.com>2023-10-16 13:42:19 +0200
commitd2b6fb5c5b0423143d71218196a56ea3e395cd47 (patch)
treeb913e91850c9eb98f554aec2dfc94cbe9b11bca6 /zellij-utils/src/plugin_api/plugin_command.proto
parentfix(plugins): make new auxiliary functions public (#2765) (diff)
downloadsl0ppij-d2b6fb5c5b0423143d71218196a56ea3e395cd47.tar.gz
sl0ppij-d2b6fb5c5b0423143d71218196a56ea3e395cd47.tar.xz
sl0ppij-d2b6fb5c5b0423143d71218196a56ea3e395cd47.zip
feat(plugins): plugin run_command api (#2862)
* prototype * add tests * style(fmt): rustfmt * update comments * deprecation warning for execcmd
Diffstat (limited to '')
-rw-r--r--zellij-utils/src/plugin_api/plugin_command.proto19
1 files changed, 19 insertions, 0 deletions
diff --git a/zellij-utils/src/plugin_api/plugin_command.proto b/zellij-utils/src/plugin_api/plugin_command.proto
index 17b15381..e0b26184 100644
--- a/zellij-utils/src/plugin_api/plugin_command.proto
+++ b/zellij-utils/src/plugin_api/plugin_command.proto
@@ -82,6 +82,7 @@ enum CommandName {
OpenTerminalInPlace = 68;
OpenCommandInPlace = 69;
OpenFileInPlace = 70;
+ RunCommand = 71;
}
message PluginCommand {
@@ -128,6 +129,7 @@ message PluginCommand {
OpenFilePayload open_file_in_place_payload = 40;
OpenFilePayload open_terminal_in_place_payload = 41;
OpenCommandPanePayload open_command_pane_in_place_payload = 42;
+ RunCommandPayload run_command_payload = 43;
}
}
@@ -170,6 +172,23 @@ message ExecCmdPayload {
repeated string command_line = 1;
}
+message RunCommandPayload {
+ repeated string command_line = 1;
+ repeated EnvVariable env_variables = 2;
+ string cwd = 3;
+ repeated ContextItem context = 4;
+}
+
+message EnvVariable {
+ string name = 1;
+ string value = 2;
+}
+
+message ContextItem {
+ string name = 1;
+ string value = 2;
+}
+
message PluginMessagePayload {
api.message.Message message = 1;
}