MISE_ENV_LUA

Constant MISE_ENV_LUA 

Source
pub(crate) const MISE_ENV_LUA: &str = "local cmd = require(\"cmd\")\nlocal json = require(\"json\")\n\nfunction PLUGIN:MiseEnv(ctx)\n  local cwd = os.getenv(\"PWD\")\n  if not cwd then\n    return {}\n  end\n  local quoted_cwd = \"\'\" .. cwd:gsub(\"\'\", \"\'\\\\\'\'\") .. \"\'\"\n  local ok, result = pcall(cmd.exec, \"grove env export --json \" .. quoted_cwd)\n  if not ok or result == \"\" or result == \"{}\" then\n    return {}\n  end\n  local vars = json.decode(result)\n  local env = {}\n  for key, value in pairs(vars) do\n    table.insert(env, {key = key, value = value})\n  end\n  return env\nend\n";