Add set-env for setting environment variables (#2802)

This commit is contained in:
Jonathan Turner
2020-12-19 19:25:03 +13:00
committed by GitHub
parent 2a483531a4
commit 058ef69da3
7 changed files with 131 additions and 2 deletions

View File

@ -22,6 +22,8 @@ pub enum CommandAction {
EnterHelpShell(Value),
/// Add a variable into scope
AddVariable(String, Value),
/// Add an environment variable into scope
AddEnvVariable(String, String),
/// Add plugins from path given
AddPlugins(String),
/// Go to the previous shell in the shell ring buffer
@ -46,6 +48,7 @@ impl PrettyDebug for CommandAction {
CommandAction::EnterValueShell(v) => b::typed("enter value shell", v.pretty()),
CommandAction::EnterHelpShell(v) => b::typed("enter help shell", v.pretty()),
CommandAction::AddVariable(..) => b::description("add variable"),
CommandAction::AddEnvVariable(..) => b::description("add environment variable"),
CommandAction::AddPlugins(..) => b::description("add plugins"),
CommandAction::PreviousShell => b::description("previous shell"),
CommandAction::NextShell => b::description("next shell"),